public class Instance extends java.lang.Object implements HandlerConfiguration
| Constructor and Description |
|---|
Instance(java.lang.String type)
Creates a Instance.
|
| Modifier and Type | Method and Description |
|---|---|
Instance |
addProperty(java.lang.String name,
java.util.Dictionary values)
Adds a dictionary property.
|
Instance |
addProperty(java.lang.String name,
java.util.List values)
Adds a list property.
|
Instance |
addProperty(java.lang.String name,
java.util.Map values)
Adds a map property.
|
Instance |
addProperty(java.lang.String name,
java.lang.String value)
Adds the string property.
|
Instance |
addProperty(java.lang.String name,
java.lang.String[] values)
Adds an array property.
|
Instance |
addProperty(java.lang.String name,
java.util.Vector values)
Adds a vector property.
|
org.apache.felix.ipojo.metadata.Element |
getElement()
Gets the instance description in the Element-Attribute form.
|
public Instance(java.lang.String type)
type - the targeted type.public Instance addProperty(java.lang.String name, java.lang.String value)
name - property namevalue - property valuepublic Instance addProperty(java.lang.String name, java.util.List values)
name - property namevalues - the listpublic Instance addProperty(java.lang.String name, java.lang.String[] values)
name - the property namevalues - the arraypublic Instance addProperty(java.lang.String name, java.util.Vector values)
name - the property namevalues - the vectorpublic Instance addProperty(java.lang.String name, java.util.Map values)
name - the property namevalues - the mappublic Instance addProperty(java.lang.String name, java.util.Dictionary values)
name - the property namevalues - the dictionarypublic org.apache.felix.ipojo.metadata.Element getElement()
getElement in interface HandlerConfigurationHandlerConfiguration.getElement()Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.