public class ServiceDescription extends AbstractDescription
ClassDescription should
contain a ServiceDescription.
The service description defines whether this is a service factory
and which interfaces this service implements.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<java.lang.String> |
interfaces
The list of implemented interfaces.
|
private boolean |
isServiceFactory
Flag for service factory.
|
annotation| Constructor and Description |
|---|
ServiceDescription(ScannedAnnotation annotation) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterface(java.lang.String interf)
Add an interface to the list of interfaces.
|
AbstractDescription |
clone() |
java.util.Set<java.lang.String> |
getInterfaces() |
boolean |
isServiceFactory() |
void |
setServiceFactory(boolean flag) |
java.lang.String |
toString() |
getAnnotation, getIdentifier, getSource, setSourceprivate boolean isServiceFactory
protected final java.util.Set<java.lang.String> interfaces
public ServiceDescription(ScannedAnnotation annotation)
public boolean isServiceFactory()
public void setServiceFactory(boolean flag)
public java.util.Set<java.lang.String> getInterfaces()
public void addInterface(java.lang.String interf)
interf - The interface.public java.lang.String toString()
toString in class java.lang.Objectpublic AbstractDescription clone()
clone in class AbstractDescription