public abstract class SessionFactory extends Object
Constructor and Description |
---|
SessionFactory() |
Modifier and Type | Method and Description |
---|---|
static Session |
createSession()
Returns the default session, with all the default contexts.
|
static Session |
createSession(boolean defaults)
Creates a session.
|
static Session |
createSession(String sagaFactoryClassname)
Returns the default session, with all the default contexts.
|
static Session |
createSession(String sagaFactoryClassname,
boolean defaults)
Creates a session.
|
protected abstract Session |
doCreateSession(boolean defaults)
Creates a session.
|
protected abstract Session doCreateSession(boolean defaults) throws NoSuccessException
defaults
- when set, the default session is returned, with all the
default contexts. Later modifications to this session are
reflected in the default session.NoSuccessException
public static Session createSession(boolean defaults) throws NoSuccessException
defaults
- when set, the default session is returned, with all the
default contexts. Later modifications to this session are
reflected in the default session.NoSuccessException
- is thrown if the implementation cannot create valid
default values based on the available information.public static Session createSession(String sagaFactoryClassname, boolean defaults) throws NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.defaults
- when set, the default session is returned, with all the
default contexts. Later modifications to this session are
reflected in the default session.NoSuccessException
- is thrown if the implementation cannot create valid
default values based on the available information.public static Session createSession() throws NoSuccessException
NoSuccessException
- is thrown if the implementation cannot create valid
default values based on the available information.public static Session createSession(String sagaFactoryClassname) throws NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.NoSuccessException
- is thrown if the implementation cannot create valid
default values based on the available information.Copyright © 2016 Open Grid Forum. All rights reserved.