org.kuali.rice.core
Class BeanHolder

java.lang.Object
  extended by org.kuali.rice.core.BeanHolder
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean

public class BeanHolder
extends Object
implements org.springframework.beans.factory.FactoryBean

The entire purpose of this class is to wrap an otherwise normal bean whose class is dynamically set at runtime through the PropertyPlaceholderConfigurer because the element attributes themselves are not parameterizable, only the property values.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
private  Class clazz
           
private  Object instance
           
 
Constructor Summary
BeanHolder()
           
 
Method Summary
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 void setObjectType(Class clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

private Class clazz

instance

private Object instance
Constructor Detail

BeanHolder

public BeanHolder()
Method Detail

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

setObjectType

public void setObjectType(Class clazz)

isSingleton

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


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.