public class ServiceProperty
extends java.lang.Object
Constructor and Description |
---|
ServiceProperty() |
Modifier and Type | Method and Description |
---|---|
org.apache.felix.ipojo.metadata.Element |
getElement()
Gets the 'property' element.
|
java.lang.Object |
getPropertyValue(ComponentInstance instance)
Gets the property value of the current property
on the given instance.
|
ServiceProperty |
setField(java.lang.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(java.lang.String name)
Sets the property name.
|
ServiceProperty |
setType(java.lang.String name)
Sets the property type.
|
ServiceProperty |
setValue(java.lang.String name)
Sets the property value.
|
public ServiceProperty setName(java.lang.String name)
name
- the property namepublic ServiceProperty setField(java.lang.String name)
name
- the property fieldpublic ServiceProperty setType(java.lang.String name)
name
- the property typepublic ServiceProperty setValue(java.lang.String name)
name
- the property valuepublic ServiceProperty setImmutable(boolean immutable)
immutable
- true
if the dependency is immutable.public ServiceProperty setMandatory(boolean mandatory)
mandatory
- true
if the dependency is mandatory.public org.apache.felix.ipojo.metadata.Element getElement()
public java.lang.Object getPropertyValue(ComponentInstance instance)
instance
- the instance on which looking for
the property valuenull
if not found.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.