public class ManageableComponentFactoryBean extends Object implements FactoryBean<flex.management.ManageableComponent>, 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.| Constructor and Description |
|---|
ManageableComponentFactoryBean(Class<? extends flex.management.ManageableComponent> componentClass)
Creates a new ManageableComponentFactoryBean for the specified component class
|
| Modifier and Type | Method and Description |
|---|---|
flex.management.ManageableComponent |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton()
It is expected that objects created by this factory will always be prototype instances.
|
void |
setBeanName(String name) |
void |
setProperties(flex.messaging.config.ConfigMap properties)
Sets the properties
ConfigMap to use in initializing the created component |
public ManageableComponentFactoryBean(Class<? extends flex.management.ManageableComponent> componentClass)
componentClass - the class of the component this FactoryBean will createpublic flex.management.ManageableComponent getObject()
throws Exception
getObject in interface FactoryBean<flex.management.ManageableComponent>Exceptionpublic Class<?> getObjectType()
getObjectType in interface FactoryBean<flex.management.ManageableComponent>public final boolean isSingleton()
isSingleton in interface FactoryBean<flex.management.ManageableComponent>public void setBeanName(String name)
setBeanName in interface BeanNameAwarepublic void setProperties(flex.messaging.config.ConfigMap properties)
ConfigMap to use in initializing the created componentproperties - the properties mapCopyright © 2014. All rights reserved.