|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.connectors.work.context.WorkContextHandler
@Service @Scoped(value=org.jvnet.hk2.component.PerLookup.class) public class WorkContextHandler
Handles work contexts submitted as part of the work instance
| Constructor Summary | |
|---|---|
WorkContextHandler()
|
|
WorkContextHandler(ConnectorRuntime runtime,
java.lang.String raName,
java.lang.ClassLoader cl)
|
|
| Method Summary | |
|---|---|
boolean |
canContainerHandleContext(java.lang.String contextClassName)
checks whether the container can handle the contextClass in question. |
static void |
debug(java.lang.String message)
|
static ExecutionContext |
getExecutionContext(Work work)
|
void |
init(java.lang.String raName,
java.lang.ClassLoader cl)
|
boolean |
isContextSupported(boolean strict,
java.lang.String workContextClassName)
indicates whether the provided workContextClass is supported by the container |
boolean |
isContextSupported(java.lang.Class contextClass)
|
void |
setupContext(ExecutionContext ec,
WorkCoordinator wc,
OneWork work)
setup the work context or execution context for the work |
void |
validateWork(Work work,
ExecutionContext ec)
validate the submitted work |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkContextHandler()
public WorkContextHandler(ConnectorRuntime runtime,
java.lang.String raName,
java.lang.ClassLoader cl)
| Method Detail |
|---|
public void init(java.lang.String raName,
java.lang.ClassLoader cl)
init in interface WorkContextHandler
public boolean isContextSupported(boolean strict,
java.lang.String workContextClassName)
isContextSupported in interface WorkContextHandlerstrict - indicates whether the type-check need to be strict or not i.e.,
exact type or its super-class typeworkContextClassName - work context class name
public boolean canContainerHandleContext(java.lang.String contextClassName)
contextClassName - work context class name
public void validateWork(Work work,
ExecutionContext ec)
throws WorkCompletedException,
WorkRejectedException
work - work instance to be validatedec - ExecutionContext
WorkCompletedException - when a submitted context is not supported
WorkRejectedException - when validation fails
public void setupContext(ExecutionContext ec,
WorkCoordinator wc,
OneWork work)
throws WorkCompletedException
ec - ExecutionContextwc - Work coordinator
WorkCompletedExceptionpublic static void debug(java.lang.String message)
public static ExecutionContext getExecutionContext(Work work)
public boolean isContextSupported(java.lang.Class contextClass)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||