|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.scr.impl.ComponentMetadata
public class ComponentMetadata
This class holds the information associated to a component in the descriptor *
Constructor Summary | |
---|---|
ComponentMetadata()
|
Method Summary | |
---|---|
void |
addDependency(ReferenceMetadata newReference)
Used to add a reference metadata to the component |
void |
addProperty(PropertyMetadata newProperty)
Used to add a property to the instance |
List |
getDependencies()
Returns the dependency descriptors |
String |
getFactoryIdentifier()
Returns the factory identifier |
String |
getImplementationClassName()
Returns the name of the implementation class |
String |
getName()
Returns the name of the component |
Dictionary |
getProperties()
Returns the properties. |
ServiceMetadata |
getServiceMetadata()
Returns the associated ServiceMetadata |
boolean |
isEnabled()
Returns the value of the enabled flag |
boolean |
isFactory()
Test to see if this service is a factory |
boolean |
isImmediate()
Returns the flag that defines the activation policy for the component. |
void |
setEnabled(boolean enabled)
Setter for the enabled property |
void |
setFactoryIdentifier(String factoryIdentifier)
|
void |
setImmediate(boolean immediate)
Setter for the immediate property |
void |
setImplementationClassName(String implementationClassName)
Sets the name of the implementation class |
void |
setName(String name)
Setter for the name |
void |
setService(ServiceMetadata service)
Used to set a ServiceMetadata object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentMetadata()
Method Detail |
---|
public void setName(String name)
name
- public void setEnabled(boolean enabled)
enabled
- public void setFactoryIdentifier(String factoryIdentifier)
factoryIdentifier
- public void setImmediate(boolean immediate)
immediate
- public void setImplementationClassName(String implementationClassName)
implementationClassName
- a class namepublic void addProperty(PropertyMetadata newProperty)
newProperty
- a property metadata objectpublic void setService(ServiceMetadata service)
service
- a ServiceMetadatapublic void addDependency(ReferenceMetadata newReference)
newReference
- a new ReferenceMetadata to be addedpublic String getName()
public boolean isEnabled()
public String getFactoryIdentifier()
public boolean isImmediate()
This method may only be trusted after this instance has been validated
by the #validate()
call. Else it will either return the value
of an explicitly set "immediate" attribute or return false if a service
element or the factory attribute is set or true otherwise. This latter
default value deduction may be unsafe while the descriptor has not been
completely read.
public String getImplementationClassName()
public ServiceMetadata getServiceMetadata()
public Dictionary getProperties()
public List getDependencies()
public boolean isFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |