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
ThreadSynchroniserFactory
that 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 ThreadSynchroniser
createThreadSynchroniser()
Creates theThreadSynchroniser
for newThreadState
.static java.util.Deque<com.googlecode.objectify.Objectify>
getStack(com.googlecode.objectify.ObjectifyFactory objectifyFactory)
Obtains theObjectify
stack from theObjectifyFactory
.
-
-
-
Constructor Detail
-
ObjectifyThreadSynchroniserFactory
public ObjectifyThreadSynchroniserFactory(com.googlecode.objectify.ObjectifyFactory objectifyFactory)
Instantiate.- Parameters:
objectifyFactory
-ObjectifyFactory
.- Throws:
java.lang.Exception
- If fails to accessObjectifyFactory
forThreadLocal
details.
-
-
Method Detail
-
getStack
public static java.util.Deque<com.googlecode.objectify.Objectify> getStack(com.googlecode.objectify.ObjectifyFactory objectifyFactory)
Obtains theObjectify
stack from theObjectifyFactory
.- Parameters:
objectifyFactory
-ObjectifyFactory
.- Returns:
Objectify
stack.
-
createThreadSynchroniser
public ThreadSynchroniser createThreadSynchroniser()
Description copied from interface:ThreadSynchroniserFactory
Creates theThreadSynchroniser
for newThreadState
.- Specified by:
createThreadSynchroniser
in interfaceThreadSynchroniserFactory
- Returns:
ThreadSynchroniser
for newThreadState
.
-
-