org.jboss.beans.metadata.plugins.factory
Class GenericBeanFactory

java.lang.Object
  extended byorg.jboss.beans.metadata.plugins.factory.GenericBeanFactory

public class GenericBeanFactory
extends Object

Collection metadata.

Version:
$Revision: 1.2 $
Author:
Adrian Brock

Field Summary
protected  String bean
          The bean class name
protected  KernelConfigurator configurator
          The configurator
protected  ConstructorMetaData constructor
          The constructor metadata
protected  Map properties
          The properties Map
 
Constructor Summary
GenericBeanFactory(KernelConfigurator configurator)
          Create a new generic bean factory
 
Method Summary
 Object create()
          Create a new bean
 String getBean()
          Get the bean name
 ConstructorMetaData getConstructor()
          Get the constructor metadata
 Map getProperties()
          Get the properties
 void setBean(String bean)
          Set the bean name
 void setConstructor(ConstructorMetaData constructor)
          Set the constructor metadata
 void setProperties(Map properties)
          Set the properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configurator

protected KernelConfigurator configurator
The configurator


bean

protected String bean
The bean class name


constructor

protected ConstructorMetaData constructor
The constructor metadata


properties

protected Map properties
The properties Map

Constructor Detail

GenericBeanFactory

public GenericBeanFactory(KernelConfigurator configurator)
Create a new generic bean factory

Parameters:
configurator - the configurator
Method Detail

create

public Object create()
              throws Throwable
Create a new bean

Returns:
the bean
Throws:
Throwable - for any error

getBean

public String getBean()
Get the bean name

Returns:
the bean

setBean

public void setBean(String bean)
Set the bean name

Parameters:
bean - the bean name

getConstructor

public ConstructorMetaData getConstructor()
Get the constructor metadata

Returns:
the contructor metadata

setConstructor

public void setConstructor(ConstructorMetaData constructor)
Set the constructor metadata

Parameters:
constructor - the constructor metadata

getProperties

public Map getProperties()
Get the properties

Returns:
the properties Map

setProperties

public void setProperties(Map properties)
Set the properties

Parameters:
properties - the properties Map


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.