|
Spring BlazeDS Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.flex.core.io.AbstractAmfConversionServiceConfigProcessor
org.springframework.flex.core.io.HibernateConfigProcessor
public class HibernateConfigProcessor
MessageBrokerConfigProcessor implementation that uses the Hibernate Metadata API to determine all classes that potentially need
special AMF conversion rules applied to them to prevent lazy initialization errors. Each type found will have a properly configured
instance of SpringPropertyProxy registered for it with the BlazeDS PropertyProxyRegistry.
| Field Summary | |
|---|---|
protected boolean |
hibernateConfigured
|
| Fields inherited from class org.springframework.flex.core.io.AbstractAmfConversionServiceConfigProcessor |
|---|
log |
| Constructor Summary | |
|---|---|
HibernateConfigProcessor()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected void |
configureConverters(ConverterRegistry registry)
Template method to allow subclasses to configure their own set of Converter instances. |
protected void |
extractHibernateMetadata(org.hibernate.SessionFactory sessionFactory)
Extracts all ClassMetadata and CollectionMetadata from a given SessionFactory to be
used in determining the types that need a SpringPropertyProxy registered in findTypesToRegister() |
protected Set<Class<?>> |
findTypesToRegister()
Returns the set of types for which SpringPropertyProxy instances should be registered. |
protected ListableBeanFactory |
getBeanFactory()
Provides access to the BeanFactory by subclasses. |
void |
setBeanFactory(BeanFactory beanFactory)
|
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Sets the Hibernate SessionFactory to be used for reading type metadata. |
| Methods inherited from class org.springframework.flex.core.io.AbstractAmfConversionServiceConfigProcessor |
|---|
processAfterStartup, processBeforeStartup, registerAmfProxies, registerPropertyProxy, setConversionService, setUseDirectFieldAccess |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean hibernateConfigured
| Constructor Detail |
|---|
public HibernateConfigProcessor()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class AbstractAmfConversionServiceConfigProcessorException
public void setBeanFactory(BeanFactory beanFactory)
throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansExceptionpublic void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
SessionFactory to be used for reading type metadata. If this property is not
explicitly set, all available SessionFactory instances will be retrieved from the containing
BeanFactory and have their type metadata extracted for use in findTypesToRegister()
sessionFactory - the session factory from which to read metadataprotected Set<Class<?>> findTypesToRegister()
SpringPropertyProxy instances should be registered.
findTypesToRegister in class AbstractAmfConversionServiceConfigProcessorprotected void configureConverters(ConverterRegistry registry)
Converter instances. This is a
convenient alternative to supplying a completely custom-configured ConversionService instance.
The default implementation does not register any additional Converters, thus subclasses do not need to delegate to it.
configureConverters in class AbstractAmfConversionServiceConfigProcessorregistry - - the converter registry used by the ConversionServiceprotected ListableBeanFactory getBeanFactory()
BeanFactory by subclasses.
protected void extractHibernateMetadata(org.hibernate.SessionFactory sessionFactory)
ClassMetadata and CollectionMetadata from a given SessionFactory to be
used in determining the types that need a SpringPropertyProxy registered in findTypesToRegister()
sessionFactory - the session factory from which to read metadata
|
Spring BlazeDS Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||