org.apache.felix.scrplugin.description
Class ServiceDescription

java.lang.Object
  extended by org.apache.felix.scrplugin.description.AbstractDescription
      extended by org.apache.felix.scrplugin.description.ServiceDescription

public class ServiceDescription
extends AbstractDescription

If a component is a service, the ClassDescription should contain a ServiceDescription. The service description defines whether this is a service factory and which interfaces this service implements.


Field Summary
protected  java.util.Set<java.lang.String> interfaces
          The list of implemented interfaces.
 
Fields inherited from class org.apache.felix.scrplugin.description.AbstractDescription
annotation
 
Constructor Summary
ServiceDescription(ScannedAnnotation annotation)
           
 
Method Summary
 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()
           
 
Methods inherited from class org.apache.felix.scrplugin.description.AbstractDescription
getAnnotation, getIdentifier, getSource, setSource
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

interfaces

protected final java.util.Set<java.lang.String> interfaces
The list of implemented interfaces.

Constructor Detail

ServiceDescription

public ServiceDescription(ScannedAnnotation annotation)
Method Detail

isServiceFactory

public boolean isServiceFactory()

setServiceFactory

public void setServiceFactory(boolean flag)

getInterfaces

public java.util.Set<java.lang.String> getInterfaces()

addInterface

public void addInterface(java.lang.String interf)
Add an interface to the list of interfaces.

Parameters:
interf - The interface.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public AbstractDescription clone()
Specified by:
clone in class AbstractDescription


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.