org.tynamo.jdo
Class JDOModule

java.lang.Object
  extended by org.tynamo.jdo.JDOModule

public class JDOModule
extends Object

Supplements the services defined by eu.cuetech.tapestry.jdo.JDOCoreModule with additional services and configuration specific to Tapestry web application.


Constructor Summary
JDOModule()
           
 
Method Summary
static void contributeComponentClassTransformWorker(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.transform.ComponentClassTransformWorker2> configuration)
          Adds the CommitAfter annotation work, to process the CommitAfter annotation.
static void contributeFactoryDefaults(org.apache.tapestry5.ioc.MappedConfiguration<String,String> configuration)
           
static void contributePersistentFieldManager(org.apache.tapestry5.ioc.MappedConfiguration<String,org.apache.tapestry5.services.PersistentFieldStrategy> configuration)
          Contributes the following: entity Stores the id of the entity and reloads from the PersistenceManager
static void contributeValueEncoderSource(org.apache.tapestry5.ioc.MappedConfiguration<Class,org.apache.tapestry5.services.ValueEncoderFactory> configuration, boolean provideEncoders, JDOPersistenceManagerSource pms, javax.jdo.PersistenceManager pm, org.apache.tapestry5.ioc.services.TypeCoercer typeCoercer, org.apache.tapestry5.ioc.services.PropertyAccess propertyAccess, org.apache.tapestry5.ioc.LoggerSource loggerSource)
          Contributes ValueEncoderFactorys for all JDO entity classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOModule

public JDOModule()
Method Detail

contributeFactoryDefaults

public static void contributeFactoryDefaults(org.apache.tapestry5.ioc.MappedConfiguration<String,String> configuration)

contributePersistentFieldManager

public static void contributePersistentFieldManager(org.apache.tapestry5.ioc.MappedConfiguration<String,org.apache.tapestry5.services.PersistentFieldStrategy> configuration)
Contributes the following:
entity
Stores the id of the entity and reloads from the PersistenceManager


contributeComponentClassTransformWorker

public static void contributeComponentClassTransformWorker(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.transform.ComponentClassTransformWorker2> configuration)
Adds the CommitAfter annotation work, to process the CommitAfter annotation.


contributeValueEncoderSource

public static void contributeValueEncoderSource(org.apache.tapestry5.ioc.MappedConfiguration<Class,org.apache.tapestry5.services.ValueEncoderFactory> configuration,
                                                @Symbol(value="tapestry.jdo.provide-entity-value-encoders")
                                                boolean provideEncoders,
                                                JDOPersistenceManagerSource pms,
                                                javax.jdo.PersistenceManager pm,
                                                org.apache.tapestry5.ioc.services.TypeCoercer typeCoercer,
                                                org.apache.tapestry5.ioc.services.PropertyAccess propertyAccess,
                                                org.apache.tapestry5.ioc.LoggerSource loggerSource)
Contributes ValueEncoderFactorys for all JDO entity classes. Encoding and decoding are based on the id property value of the entity using type coercion. Hence, if the id can be coerced to a String and back then the entity can be coerced.



Copyright © 2011-2012. All Rights Reserved.