|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.scrplugin.om.AbstractObject
org.apache.felix.scrplugin.om.Component
public class Component
Component
is a described component.
Field Summary | |
---|---|
protected String |
activate
Activation method. |
protected String |
configurationPolicy
Configuration policy. |
protected String |
deactivate
Deactivation method. |
protected Boolean |
enabled
Is this component enabled? |
protected String |
factory
The factory. |
protected Boolean |
immediate
Is this component immediately started. |
protected Implementation |
implementation
The implementation. |
protected boolean |
isAbstract
Is this an abstract description? |
protected boolean |
isDs
Is this a descriptor to be ignored ? |
protected String |
modified
Modified method. |
protected String |
name
The name of the component. |
protected List<Property> |
properties
All properties. |
protected List<Reference> |
references
The references. |
protected Service |
service
The corresponding service. |
protected int |
specVersion
The spec version. |
Fields inherited from class org.apache.felix.scrplugin.om.AbstractObject |
---|
tag |
Constructor Summary | |
---|---|
Component()
Default constructor. |
|
Component(JavaTag t)
Constructor from java source. |
Method Summary | |
---|---|
void |
addProperty(Property property)
|
void |
addReference(Reference ref)
|
protected void |
checkLifecycleMethod(int specVersion,
JavaClassDescription javaClass,
String methodName,
boolean isActivate,
IssueLog iLog)
Check for existence of lifecycle methods. |
String |
getActivate()
Get the name of the activate method (or null for default) |
String |
getConfigurationPolicy()
Return the configuration policy. |
String |
getDeactivate()
Get the name of the deactivate method (or null for default) |
String |
getFactory()
|
Implementation |
getImplementation()
|
JavaClassDescription |
getJavaClassDescription()
Return the associated java class description |
String |
getModified()
Get the name of the modified method (or null for default) |
String |
getName()
|
List<Property> |
getProperties()
|
List<Reference> |
getReferences()
|
Service |
getService()
|
int |
getSpecVersion()
Get the spec version. |
boolean |
isAbstract()
|
boolean |
isDs()
|
Boolean |
isEnabled()
|
Boolean |
isImmediate()
|
void |
setAbstract(boolean isAbstract)
|
void |
setActivate(String value)
Set the name of the activate method (or null for default) |
void |
setConfigurationPolicy(String value)
Set the configuration policy. |
void |
setDeactivate(String value)
Set the name of the deactivate method (or null for default) |
void |
setDs(boolean isDs)
|
void |
setEnabled(Boolean enabled)
|
void |
setFactory(String factory)
|
void |
setImmediate(Boolean immediate)
|
void |
setImplementation(Implementation implementation)
|
void |
setModified(String value)
Set the name of the modified method (or null for default) |
void |
setName(String name)
|
void |
setProperties(List<Property> properties)
|
void |
setReferences(List<Reference> references)
|
void |
setService(Service service)
|
void |
setSpecVersion(int value)
Set the spec version. |
String |
toString()
|
void |
validate(int specVersion,
IssueLog iLog)
Validate the component description. |
Methods inherited from class org.apache.felix.scrplugin.om.AbstractObject |
---|
getJavaTag, logError, logWarn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String name
protected Boolean enabled
protected Boolean immediate
protected String factory
protected Implementation implementation
protected List<Property> properties
protected Service service
protected List<Reference> references
protected boolean isAbstract
protected boolean isDs
protected String configurationPolicy
protected String activate
protected String deactivate
protected String modified
protected int specVersion
Constructor Detail |
---|
public Component()
public Component(JavaTag t)
Method Detail |
---|
public int getSpecVersion()
public void setSpecVersion(int value)
public JavaClassDescription getJavaClassDescription()
public List<Property> getProperties()
public void setProperties(List<Property> properties)
public void addProperty(Property property)
public String getName()
public void setName(String name)
public String getFactory()
public void setFactory(String factory)
public Boolean isEnabled()
public void setEnabled(Boolean enabled)
public Boolean isImmediate()
public void setImmediate(Boolean immediate)
public Implementation getImplementation()
public void setImplementation(Implementation implementation)
public Service getService()
public void setService(Service service)
public List<Reference> getReferences()
public void setReferences(List<Reference> references)
public void addReference(Reference ref)
public boolean isAbstract()
public void setAbstract(boolean isAbstract)
public boolean isDs()
public void setDs(boolean isDs)
public String getActivate()
public void setDeactivate(String value)
public String getDeactivate()
public void setActivate(String value)
public void setModified(String value)
public String getModified()
public void validate(int specVersion, IssueLog iLog) throws SCRDescriptorException
SCRDescriptorException
protected void checkLifecycleMethod(int specVersion, JavaClassDescription javaClass, String methodName, boolean isActivate, IssueLog iLog) throws SCRDescriptorException
specVersion
- The spec versionjavaClass
- The java class to inspect.methodName
- The method name.warnings
- The list of warnings used to add new warnings.
SCRDescriptorException
public String getConfigurationPolicy()
public void setConfigurationPolicy(String value)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |