org.tynamo.jdo
Class JDOCoreModule
java.lang.Object
org.tynamo.jdo.JDOCoreModule
@Marker(value=JDOCore.class)
public class JDOCoreModule
- extends Object
Defines core services that support initialization of JDO and access to the JDO
PersistenceManager.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDOCoreModule
public JDOCoreModule()
bind
public static void bind(org.apache.tapestry5.ioc.ServiceBinder binder)
contributeFactoryDefaults
public static void contributeFactoryDefaults(org.apache.tapestry5.ioc.MappedConfiguration<String,String> configuration)
contributeRegistryStartup
public static void contributeRegistryStartup(org.apache.tapestry5.ioc.OrderedConfiguration<Runnable> configuration,
@Symbol(value="tapestry.jdo.early-startup")
boolean earlyStartup,
JDOPersistenceManagerSource persistenceManagerSource)
buildJDOTransactionManager
@Scope(value="perthread")
public static JDOTransactionManager buildJDOTransactionManager(JDOPersistenceManagerSource sessionSource,
org.apache.tapestry5.ioc.services.PerthreadManager perthreadManager)
- The transaction manager manages transaction on a per-thread/per-request basis. Any active
transaction will be rolled back at
thread cleanup time. The
thread is cleaned up automatically in a Tapestry web application.
buildPersistenceManager
public static javax.jdo.PersistenceManager buildPersistenceManager(JDOTransactionManager transactionManager,
org.apache.tapestry5.ioc.services.PropertyShadowBuilder propertyShadowBuilder)
buildJDOEntityManagerSource
public static JDOPersistenceManagerSource buildJDOEntityManagerSource(org.slf4j.Logger logger,
@Inject@Symbol(value="tapestry.jdo.pmf-name")
String pmfName,
org.apache.tapestry5.ioc.services.RegistryShutdownHub hub)
Copyright © 2011-2012. All Rights Reserved.