public class DefaultDeclarationBuilderService extends java.lang.Object implements DeclarationBuilderService
| Constructor and Description |
|---|
DefaultDeclarationBuilderService(org.osgi.framework.BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
DeclarationHandle |
newExtension(java.lang.String name,
FactoryBuilder builder)
Declares a new extension (supports new types like component, composite, handler).
|
InstanceBuilder |
newInstance(java.lang.String type)
Declares a new anonymous instance of a given type.
|
InstanceBuilder |
newInstance(java.lang.String type,
java.lang.String name)
Declares a new instance of a given type.
|
InstanceBuilder |
newInstance(java.lang.String type,
java.lang.String name,
java.lang.String version)
Declares a new instance of a given type.
|
DeclarationHandle |
newType(org.apache.felix.ipojo.metadata.Element description)
Declares a new type using the given element description.
|
public DefaultDeclarationBuilderService(org.osgi.framework.BundleContext context)
public InstanceBuilder newInstance(java.lang.String type)
DeclarationBuilderServicenewInstance(type, null).newInstance in interface DeclarationBuilderServicetype - name of the component to be instantiated (cannot be null).InstanceDeclarationpublic InstanceBuilder newInstance(java.lang.String type, java.lang.String name)
DeclarationBuilderServicenewInstance(type, name, null).newInstance in interface DeclarationBuilderServicetype - name of the component to be instantiated.name - name of the new instance (can be null)InstanceDeclarationpublic InstanceBuilder newInstance(java.lang.String type, java.lang.String name, java.lang.String version)
DeclarationBuilderServicenewInstance in interface DeclarationBuilderServicetype - name of the component to be instantiated.name - name of the new instance (can be null)version - version of the expected type (can be null)InstanceDeclarationpublic DeclarationHandle newExtension(java.lang.String name, FactoryBuilder builder)
DeclarationBuilderServicenewExtension in interface DeclarationBuilderServicename - name of the type to support (no namespace to be provided)builder - associated factory builderIPojoFactory,
ExtensionDeclarationpublic DeclarationHandle newType(org.apache.felix.ipojo.metadata.Element description)
DeclarationBuilderServicenewType in interface DeclarationBuilderServicedescription - description of the component typeTypeDeclarationCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.