public class ReflectiveFactoryBuilder extends java.lang.Object implements FactoryBuilder
Constructor and Description |
---|
ReflectiveFactoryBuilder(java.lang.reflect.Constructor<? extends IPojoFactory> constructor)
Creates the factory builder.
|
Modifier and Type | Method and Description |
---|---|
IPojoFactory |
build(org.osgi.framework.BundleContext bundleContext,
org.apache.felix.ipojo.metadata.Element metadata)
Calls the wrapped constructor to create an iPOJO factory.
|
public ReflectiveFactoryBuilder(java.lang.reflect.Constructor<? extends IPojoFactory> constructor)
constructor
- the constructor that will be called when a new component factory will be created.public IPojoFactory build(org.osgi.framework.BundleContext bundleContext, org.apache.felix.ipojo.metadata.Element metadata) throws FactoryBuilderException
build
in interface FactoryBuilder
bundleContext
- the bundle context of the bundle declaring the component typemetadata
- the metadata of the component type (component
element).FactoryBuilderException
- if the constructor cannot be called or throws an error.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.