jfun.yan.spring
Class Component2FactoryBean

java.lang.Object
  extended by jfun.yan.spring.Component2FactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean

public class Component2FactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean

This class adapts a yan Component to Spring's FactoryBean.

Author:
Ben Yu Nov 16, 2005 11:38:31 PM

Method Summary
 Component getComponent()
          Get the component in this object.
 Container getContainer()
          Get the container in this object.
 java.lang.Object getObject()
          Instantiate the component.
 java.lang.Class getObjectType()
          Get the static type of the component.
 boolean isSingleton()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getObject

public java.lang.Object getObject()
                           throws java.lang.Exception
Instantiate the component.

Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
java.lang.Exception

getObjectType

public java.lang.Class getObjectType()
Get the static type of the component.

Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

getComponent

public Component getComponent()
Get the component in this object.


getContainer

public Container getContainer()
Get the container in this object.