|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.gemfire.serialization.InstantiatorFactoryBean
public class InstantiatorFactoryBean
FactoryBean
that eases registration of custom Instantiator
through
InstantiatorGenerator
s, inside the Spring container.
By default, the returns Instantiator
s (created through AsmInstantiatorGenerator
if a custom
generator is not specified) are registered at startup with GemFire.
Constructor Summary | |
---|---|
InstantiatorFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
Collection<Instantiator> |
getObject()
|
Class<?> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setAutoRegister(boolean autoRegister)
Sets the auto-registration of this Instantiator during the container startup. |
void |
setBeanClassLoader(ClassLoader classLoader)
|
void |
setCustomTypes(Map<Class<? extends DataSerializable>,Integer> types)
Sets the custom types and associated user ids for generating the Instantiator s. |
void |
setGenerator(InstantiatorGenerator generator)
Sets the generator to use for creating Instantiator s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstantiatorFactoryBean()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public Collection<Instantiator> getObject() throws Exception
getObject
in interface FactoryBean<Collection<Instantiator>>
Exception
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<Collection<Instantiator>>
public boolean isSingleton()
isSingleton
in interface FactoryBean<Collection<Instantiator>>
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
public void setCustomTypes(Map<Class<? extends DataSerializable>,Integer> types)
Instantiator
s.
types
- map containing as keys the custom types and values the associated user ids.public void setGenerator(InstantiatorGenerator generator)
Instantiator
s.
generator
- the generator to setpublic void setAutoRegister(boolean autoRegister)
Instantiator
during the container startup.
Default is true, meaning the registration will occur once this factory is initialized.
autoRegister
- the autoRegister to setInstantiator.register(Instantiator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |