Class ServiceMetadata
- java.lang.Object
-
- org.apache.felix.scr.impl.metadata.ServiceMetadata
-
public class ServiceMetadata extends java.lang.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
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>
m_provides
private ServiceMetadata.Scope
m_scope
private java.lang.String
m_scopeName
private java.lang.Boolean
m_serviceFactory
private boolean
m_validated
-
Constructor Summary
Constructors Constructor Description ServiceMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProvide(java.lang.String provide)
Add a provided interface to this servicejava.lang.String[]
getProvides()
Returns the implemented interfacesServiceMetadata.Scope
getScope()
void
setScope(java.lang.String scopeName)
void
setServiceFactory(boolean serviceFactory)
Setter for the servicefactory attribute of the service element(package private) void
validate(ComponentMetadata componentMetadata)
Verify if the semantics of this metadata are correct
-
-
-
Field Detail
-
m_serviceFactory
private java.lang.Boolean m_serviceFactory
-
m_scopeName
private java.lang.String m_scopeName
-
m_scope
private ServiceMetadata.Scope m_scope
-
m_provides
private java.util.List<java.lang.String> m_provides
-
m_validated
private boolean m_validated
-
-
Method Detail
-
setServiceFactory
public void setServiceFactory(boolean serviceFactory)
Setter for the servicefactory attribute of the service element- Parameters:
serviceFactory
-
-
setScope
public void setScope(java.lang.String scopeName)
-
getScope
public ServiceMetadata.Scope getScope()
-
addProvide
public void addProvide(java.lang.String provide)
Add a provided interface to this service- Parameters:
provide
- a String containing the name of the provided interface
-
getProvides
public java.lang.String[] getProvides()
Returns the implemented interfaces- Returns:
- the implemented interfaces as a string array
-
validate
void validate(ComponentMetadata componentMetadata)
Verify if the semantics of this metadata are correct
-
-