public abstract class AbstractContext extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
protected ClassLoader |
classLoader |
protected String |
id |
protected AbstractContext[] |
outerContexts
Chain of batch contexts, the first one is the root JobContext.
|
protected Object |
transientUserData |
Modifier | Constructor and Description |
---|---|
protected |
AbstractContext(String id) |
protected |
AbstractContext(String id,
AbstractContext[] outerContexts) |
Modifier and Type | Method and Description |
---|---|
static AbstractContext[] |
addToContextArray(AbstractContext[] contextArray,
AbstractContext add)
Appends a BatchContext to an array of BatchContext and return the expanded new array.
|
protected Object |
clone() |
abstract javax.batch.runtime.BatchStatus |
getBatchStatus() |
ClassLoader |
getClassLoader() |
abstract String |
getExitStatus() |
String |
getId() |
JobContextImpl |
getJobContext() |
AbstractContext[] |
getOuterContexts() |
Object |
getTransientUserData() |
abstract void |
setBatchStatus(javax.batch.runtime.BatchStatus status) |
abstract void |
setExitStatus(String status) |
void |
setTransientUserData(Object data) |
protected String id
protected Object transientUserData
protected ClassLoader classLoader
protected AbstractContext[] outerContexts
protected AbstractContext(String id)
protected AbstractContext(String id, AbstractContext[] outerContexts)
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public abstract void setBatchStatus(javax.batch.runtime.BatchStatus status)
public abstract javax.batch.runtime.BatchStatus getBatchStatus()
public abstract void setExitStatus(String status)
public abstract String getExitStatus()
public String getId()
public Object getTransientUserData()
public void setTransientUserData(Object data)
public JobContextImpl getJobContext()
public ClassLoader getClassLoader()
public AbstractContext[] getOuterContexts()
public static AbstractContext[] addToContextArray(AbstractContext[] contextArray, AbstractContext add)
contextArray
- the array of BatchContext to add to; null if it's from a JobContextadd
- the additional BatchContext; should not be nulCopyright © 2014 JBoss by Red Hat. All rights reserved.