org.slim3.container
Class PrototypeBeanFactory

java.lang.Object
  extended by org.slim3.container.PrototypeBeanFactory
All Implemented Interfaces:
Disposable, BeanFactory

public class PrototypeBeanFactory
extends Object
implements BeanFactory, Disposable

Prototype implementation for BeanFactory.

Since:
3.0
Author:
higa

Field Summary
protected  String beanClassName
          The bean class name.
protected  BeanMeta beanMeta
          The bean meta data.
protected  S3Container container
          The container.
 
Constructor Summary
PrototypeBeanFactory(BeanMeta beanMeta, S3Container container)
          Constructor.
 
Method Summary
 void dispose()
          Disposes resource.
 Object getBean()
          Returns a bean.
protected  void prepareBeanMeta()
          Prepares the bean meta data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beanMeta

protected BeanMeta beanMeta
The bean meta data.


container

protected S3Container container
The container.


beanClassName

protected String beanClassName
The bean class name.

Constructor Detail

PrototypeBeanFactory

public PrototypeBeanFactory(BeanMeta beanMeta,
                            S3Container container)
Constructor.

Parameters:
beanMeta - the bean meta data
container - the container
Method Detail

getBean

public Object getBean()
Description copied from interface: BeanFactory
Returns a bean.

Specified by:
getBean in interface BeanFactory
Returns:
a bean

dispose

public void dispose()
Description copied from interface: Disposable
Disposes resource.

Specified by:
dispose in interface Disposable

prepareBeanMeta

protected void prepareBeanMeta()
Prepares the bean meta data.



Copyright © 2008-2009 The Slim3 project. All Rights Reserved.