public abstract class ContextFactory extends Object
Constructor and Description |
---|
ContextFactory() |
Modifier and Type | Method and Description |
---|---|
static Context |
createContext()
Constructs a security context.
|
static Context |
createContext(String type)
Constructs a security context.
|
static Context |
createContext(String sagaFactoryClassname,
String type)
Constructs a security context.
|
protected abstract Context |
doCreateContext(String type)
Constructs a security context.
|
protected abstract Context doCreateContext(String type) throws IncorrectStateException, TimeoutException, NoSuccessException
type
- when set to a non-empty string, Context#setDefaults()
is called.IncorrectStateException
TimeoutException
NoSuccessException
public static Context createContext(String type) throws IncorrectStateException, TimeoutException, NoSuccessException
type
- type of the context.IncorrectStateException
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.NoSuccessException
- is thrown if the implementation cannot create valid
default values based on the available information.public static Context createContext() throws IncorrectStateException, TimeoutException, NoSuccessException
IncorrectStateException
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.NoSuccessException
- is thrown if the implementation cannot create valid
default values based on the available information.public static Context createContext(String sagaFactoryClassname, String type) throws IncorrectStateException, TimeoutException, NoSuccessException
sagaFactoryClassname
- the class name of the Saga factory to be used.type
- type of the context.IncorrectStateException
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.NoSuccessException
- is thrown if the implementation cannot create valid
default values based on the available information.Copyright © 2016 Open Grid Forum. All rights reserved.