|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.api.ServiceProperty
public class ServiceProperty
Allows configuring a service property.
Constructor Summary | |
---|---|
ServiceProperty()
|
Method Summary | |
---|---|
Element |
getElement()
Gets the 'property' element. |
Object |
getPropertyValue(ComponentInstance instance)
Gets the property value of the current property on the given instance. |
ServiceProperty |
setField(String name)
Sets the property field. |
ServiceProperty |
setImmutable(boolean immutable)
Sets if the property is immutable. |
ServiceProperty |
setMandatory(boolean mandatory)
Sets if the property is mandatory. |
ServiceProperty |
setName(String name)
Sets the property name. |
ServiceProperty |
setType(String name)
Sets the property type. |
ServiceProperty |
setValue(String name)
Sets the property value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceProperty()
Method Detail |
---|
public ServiceProperty setName(String name)
name
- the property name
public ServiceProperty setField(String name)
name
- the property field
public ServiceProperty setType(String name)
name
- the property type
public ServiceProperty setValue(String name)
name
- the property value
public ServiceProperty setImmutable(boolean immutable)
immutable
- true
if the dependency is immutable.
public ServiceProperty setMandatory(boolean mandatory)
mandatory
- true
if the dependency is mandatory.
public Element getElement()
public Object getPropertyValue(ComponentInstance instance)
instance
- the instance on which looking for
the property value
null
if not found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |