|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.api.composite.Instance
public class Instance
Allows defining a contained instance. A contained instance is like an instance declaration but the instance is created in the composite.
Constructor Summary | |
---|---|
Instance(String type)
Creates a Instance. |
Method Summary | |
---|---|
Instance |
addProperty(String name,
Dictionary values)
Adds a dictionary property. |
Instance |
addProperty(String name,
List values)
Adds a list property. |
Instance |
addProperty(String name,
Map values)
Adds a map property. |
Instance |
addProperty(String name,
String value)
Adds the string property. |
Instance |
addProperty(String name,
String[] values)
Adds an array property. |
Instance |
addProperty(String name,
Vector values)
Adds a vector property. |
Element |
getElement()
Gets the instance description in the Element-Attribute form. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Instance(String type)
type
- the targeted type.Method Detail |
---|
public Instance addProperty(String name, String value)
name
- property namevalue
- property value
public Instance addProperty(String name, List values)
name
- property namevalues
- the list
public Instance addProperty(String name, String[] values)
name
- the property namevalues
- the array
public Instance addProperty(String name, Vector values)
name
- the property namevalues
- the vector
public Instance addProperty(String name, Map values)
name
- the property namevalues
- the map
public Instance addProperty(String name, Dictionary values)
name
- the property namevalues
- the dictionary
public Element getElement()
getElement
in interface HandlerConfiguration
HandlerConfiguration.getElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |