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)
DeclarationBuilderService
newInstance(type, null)
.newInstance
in interface DeclarationBuilderService
type
- name of the component to be instantiated (cannot be null).InstanceDeclaration
public InstanceBuilder newInstance(java.lang.String type, java.lang.String name)
DeclarationBuilderService
newInstance(type, name, null)
.newInstance
in interface DeclarationBuilderService
type
- name of the component to be instantiated.name
- name of the new instance (can be null)InstanceDeclaration
public InstanceBuilder newInstance(java.lang.String type, java.lang.String name, java.lang.String version)
DeclarationBuilderService
newInstance
in interface DeclarationBuilderService
type
- 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)InstanceDeclaration
public DeclarationHandle newExtension(java.lang.String name, FactoryBuilder builder)
DeclarationBuilderService
newExtension
in interface DeclarationBuilderService
name
- name of the type to support (no namespace to be provided)builder
- associated factory builderIPojoFactory
,
ExtensionDeclaration
public DeclarationHandle newType(org.apache.felix.ipojo.metadata.Element description)
DeclarationBuilderService
newType
in interface DeclarationBuilderService
description
- description of the component typeTypeDeclaration
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.