sirius.kernel.di.std.Named Maven / Gradle / Ivy
/*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - [email protected]
*/
package sirius.kernel.di.std;
import javax.annotation.Nonnull;
/**
* Represents a named service.
*
* Classes implementing this interface will automatically use the value returned by getName() as name.
* Therefore a simple {@link sirius.kernel.di.std.Register} annotation is sufficient without the name parameter
* filled.
*/
public interface Named {
/**
* Returns the name of the part.
*
* The return value is used as part name when the Register annotation is processed.
*
* @return the name of this part
*/
@Nonnull
String getName();
}