|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.gemfire.serialization.InstantiatorFactoryBean
public class InstantiatorFactoryBean
FactoryBean that eases registration of custom Instantiator through
InstantiatorGenerators, inside the Spring container.
By default, the returns Instantiators (created through AsmInstantiatorGenerator if a custom
generator is not specified) are registered at startup with GemFire.
| Constructor Summary | |
|---|---|
InstantiatorFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
Collection<com.gemstone.gemfire.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 com.gemstone.gemfire.DataSerializable>,Integer> types)
Sets the custom types and associated user ids for generating the Instantiators. |
void |
setDistribute(boolean distribute)
Sets the distribution of the region of this Instantiator during the container startup. |
void |
setGenerator(InstantiatorGenerator generator)
Sets the generator to use for creating Instantiators. |
| 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 InitializingBeanException
public Collection<com.gemstone.gemfire.Instantiator> getObject()
throws Exception
getObject in interface FactoryBean<Collection<com.gemstone.gemfire.Instantiator>>Exceptionpublic Class<?> getObjectType()
getObjectType in interface FactoryBean<Collection<com.gemstone.gemfire.Instantiator>>public boolean isSingleton()
isSingleton in interface FactoryBean<Collection<com.gemstone.gemfire.Instantiator>>public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface BeanClassLoaderAwarepublic void setCustomTypes(Map<Class<? extends com.gemstone.gemfire.DataSerializable>,Integer> types)
Instantiators.
types - map containing as keys the custom types and values the associated user ids.public void setGenerator(InstantiatorGenerator generator)
Instantiators.
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)public void setDistribute(boolean distribute)
Instantiator during the container startup.
Default is false, meaning the registration will not be distributed to other clients.
distribute - whether the registration is distributable or notInstantiator.register(Instantiator, boolean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||