Package net.officefloor.nosql.objectify
Class ObjectifyThreadSynchroniserFactory
- java.lang.Object
-
- net.officefloor.nosql.objectify.ObjectifyThreadSynchroniserFactory
-
- All Implemented Interfaces:
ThreadSynchroniserFactory
public class ObjectifyThreadSynchroniserFactory extends java.lang.Object implements ThreadSynchroniserFactory
ThreadSynchroniserFactorythat auto-registers itself with theOfficeArchitect.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ObjectifyThreadSynchroniserFactory(com.googlecode.objectify.ObjectifyFactory objectifyFactory)Instantiate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreadSynchronisercreateThreadSynchroniser()Creates theThreadSynchroniserfor newThreadState.static java.util.Deque<com.googlecode.objectify.Objectify>getStack(com.googlecode.objectify.ObjectifyFactory objectifyFactory)Obtains theObjectifystack from theObjectifyFactory.
-
-
-
Constructor Detail
-
ObjectifyThreadSynchroniserFactory
public ObjectifyThreadSynchroniserFactory(com.googlecode.objectify.ObjectifyFactory objectifyFactory)
Instantiate.- Parameters:
objectifyFactory-ObjectifyFactory.- Throws:
java.lang.Exception- If fails to accessObjectifyFactoryforThreadLocaldetails.
-
-
Method Detail
-
getStack
public static java.util.Deque<com.googlecode.objectify.Objectify> getStack(com.googlecode.objectify.ObjectifyFactory objectifyFactory)
Obtains theObjectifystack from theObjectifyFactory.- Parameters:
objectifyFactory-ObjectifyFactory.- Returns:
Objectifystack.
-
createThreadSynchroniser
public ThreadSynchroniser createThreadSynchroniser()
Description copied from interface:ThreadSynchroniserFactoryCreates theThreadSynchroniserfor newThreadState.- Specified by:
createThreadSynchroniserin interfaceThreadSynchroniserFactory- Returns:
ThreadSynchroniserfor newThreadState.
-
-