Class ServiceMetadata
- java.lang.Object
-
- org.apache.felix.scr.impl.metadata.ServiceMetadata
-
public class ServiceMetadata extends Object
This class contains the metadata associated to a service that is provided by a component
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServiceMetadata.Scope
-
Constructor Summary
Constructors Constructor Description ServiceMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProvide(String provide)
Add a provided interface to this serviceString[]
getProvides()
Returns the implemented interfacesServiceMetadata.Scope
getScope()
void
setScope(String scopeName)
void
setServiceFactory(boolean serviceFactory)
Setter for the servicefactory attribute of the service element
-
-
-
Method Detail
-
setServiceFactory
public void setServiceFactory(boolean serviceFactory)
Setter for the servicefactory attribute of the service element- Parameters:
serviceFactory
-
-
setScope
public void setScope(String scopeName)
-
getScope
public ServiceMetadata.Scope getScope()
-
addProvide
public void addProvide(String provide)
Add a provided interface to this service- Parameters:
provide
- a String containing the name of the provided interface
-
getProvides
public String[] getProvides()
Returns the implemented interfaces- Returns:
- the implemented interfaces as a string array
-
-