org.springframework.flex.core
Class ManageableComponentFactoryBean

java.lang.Object
  extended by org.springframework.flex.core.ManageableComponentFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.FactoryBean

public class ManageableComponentFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.BeanNameAware

FactoryBean that allows for the creation of BlazeDS ManageableComponent prototype instances with the appropriate ManageableComponent.initialize(String, ConfigMap) callback after creation. Useful for configuring non-singleton helper objects such as a custom JavaAdapter.

Author:
Jeremy Grelle

Constructor Summary
ManageableComponentFactoryBean(java.lang.Class<? extends flex.management.ManageableComponent> componentClass)
          Creates a new ManageableComponentFactoryBean for the specified component class
 
Method Summary
 java.lang.Object getObject()
          
 java.lang.Class<?> getObjectType()
          
 boolean isSingleton()
          It is expected that objects created by this factory will always be prototype instances.
 void setBeanName(java.lang.String name)
          
 void setProperties(flex.messaging.config.ConfigMap properties)
          Sets the properties ConfigMap to use in initializing the created component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManageableComponentFactoryBean

public ManageableComponentFactoryBean(java.lang.Class<? extends flex.management.ManageableComponent> componentClass)
Creates a new ManageableComponentFactoryBean for the specified component class

Parameters:
componentClass - the class of the component this FactoryBean will create
Method Detail

getObject

public java.lang.Object getObject()
                           throws java.lang.Exception

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

getObjectType

public java.lang.Class<?> getObjectType()

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

isSingleton

public final boolean isSingleton()
It is expected that objects created by this factory will always be prototype instances.

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

setBeanName

public void setBeanName(java.lang.String name)

Specified by:
setBeanName in interface org.springframework.beans.factory.BeanNameAware

setProperties

public void setProperties(flex.messaging.config.ConfigMap properties)
Sets the properties ConfigMap to use in initializing the created component

Parameters:
properties - the properties map