org.tynamo.hibernate.services
Class TynamoHibernateModule
java.lang.Object
org.tynamo.hibernate.services.TynamoHibernateModule
public class TynamoHibernateModule
- extends Object
|
Method Summary |
static void |
beanBlockSource(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.services.BeanBlockContribution> configuration)
Contribution to the BeanBlockSource service to tell the BeanEditForm component about the editors. |
static void |
bind(org.apache.tapestry5.ioc.ServiceBinder binder)
|
static org.hibernate.search.FullTextSession |
buildFullTextSession(org.apache.tapestry5.hibernate.HibernateSessionManager sessionManager,
org.apache.tapestry5.ioc.services.PropertyShadowBuilder propertyShadowBuilder)
|
static void |
classpathAssetAliasManager(org.apache.tapestry5.ioc.MappedConfiguration<String,String> configuration)
|
static void |
componentClassResolver(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration)
Add our components and pages to the "tynamo" library. |
static void |
componentMessagesSource(org.apache.tapestry5.ioc.OrderedConfiguration<String> configuration)
|
static void |
contributeDefaultDataTypeAnalyzer(org.apache.tapestry5.ioc.MappedConfiguration<Class,String> configuration)
Contributions to the DefaultDataTypeAnalyzer. |
static void |
descriptorFactory(org.apache.tapestry5.ioc.OrderedConfiguration<DescriptorDecorator> configuration,
HibernateDescriptorDecorator hibernateDescriptorDecorator)
|
static void |
descriptorService(org.apache.tapestry5.ioc.Configuration<Class> configuration,
org.apache.tapestry5.hibernate.HibernateSessionSource hibernateSessionSource)
|
static void |
hibernateSessionSource(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.hibernate.HibernateConfigurer> config,
org.apache.tapestry5.hibernate.HibernateConfigurer interceptorConfigurer)
Adds the following configurers:
TynamoInterceptorConfigurer
add the TynamoInterceptor to the hibernate configuration |
static void |
setupFactoryDefaultsSymbols(org.apache.tapestry5.ioc.MappedConfiguration<String,String> configuration)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TynamoHibernateModule
public TynamoHibernateModule()
bind
public static void bind(org.apache.tapestry5.ioc.ServiceBinder binder)
componentClassResolver
@Contribute(value=org.apache.tapestry5.services.ComponentClassResolver.class)
public static void componentClassResolver(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration)
- Add our components and pages to the "tynamo" library.
classpathAssetAliasManager
@Contribute(value=org.apache.tapestry5.services.ClasspathAssetAliasManager.class)
public static void classpathAssetAliasManager(org.apache.tapestry5.ioc.MappedConfiguration<String,String> configuration)
componentMessagesSource
@Contribute(value=org.apache.tapestry5.services.messages.ComponentMessagesSource.class)
public static void componentMessagesSource(org.apache.tapestry5.ioc.OrderedConfiguration<String> configuration)
contributeDefaultDataTypeAnalyzer
public static void contributeDefaultDataTypeAnalyzer(org.apache.tapestry5.ioc.MappedConfiguration<Class,String> configuration)
- Contributions to the DefaultDataTypeAnalyzer.
DataTypeAnalyzer is a chain of command that can make match properties to data types based on property type or
annotations on the property. In general, DefaultDataTypeAnalyzer is used, as that only needs to consider property
type. DefaultDataTypeAnalyzer matches property types to data types, based on a search up the inheritance path.
beanBlockSource
@Contribute(value=org.apache.tapestry5.services.BeanBlockSource.class)
public static void beanBlockSource(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.services.BeanBlockContribution> configuration)
- Contribution to the BeanBlockSource service to tell the BeanEditForm component about the editors. When the
BeanEditForm sees a property of type BigDecimal, it will map that to datatype "currency" and from there to the
currency block of the AppPropertyEditBlocks page of the application.
descriptorFactory
@Contribute(value=org.tynamo.descriptor.factories.DescriptorFactory.class)
public static void descriptorFactory(org.apache.tapestry5.ioc.OrderedConfiguration<DescriptorDecorator> configuration,
@Autobuild
HibernateDescriptorDecorator hibernateDescriptorDecorator)
descriptorService
@Contribute(value=org.tynamo.services.DescriptorService.class)
public static void descriptorService(org.apache.tapestry5.ioc.Configuration<Class> configuration,
org.apache.tapestry5.hibernate.HibernateSessionSource hibernateSessionSource)
setupFactoryDefaultsSymbols
@Contribute(value=org.apache.tapestry5.ioc.services.SymbolProvider.class)
@FactoryDefaults
public static void setupFactoryDefaultsSymbols(org.apache.tapestry5.ioc.MappedConfiguration<String,String> configuration)
hibernateSessionSource
@Contribute(value=org.apache.tapestry5.hibernate.HibernateSessionSource.class)
public static void hibernateSessionSource(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.hibernate.HibernateConfigurer> config,
@InjectService(value="TynamoInterceptorConfigurer")
org.apache.tapestry5.hibernate.HibernateConfigurer interceptorConfigurer)
- Adds the following configurers:
- TynamoInterceptorConfigurer
- add the TynamoInterceptor to the hibernate configuration
buildFullTextSession
public static org.hibernate.search.FullTextSession buildFullTextSession(org.apache.tapestry5.hibernate.HibernateSessionManager sessionManager,
org.apache.tapestry5.ioc.services.PropertyShadowBuilder propertyShadowBuilder)
Copyright © 2004-2012. All Rights Reserved.