|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.adapter.WebjectConstants
wt.adapter.BasicWebjectDelegate
wt.adapter.WebjectDelegateTemplate
This class provides a "template" for implement WebjectDelegates. It provides
a default implementation of the invoke() method. The implementation of
the invoke method provides hooks for subclasses to override for their
specific processing.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static boolean |
DEBUG
|
static long |
EXTERNALIZATION_VERSION_UID
|
private Group |
groupIn
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private String[] |
outputAttributeNames
|
private Enumeration |
outputObjects
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private String |
targetClass
|
private Enumeration |
targetObjects
|
private static boolean |
VERBOSE
|
private Webject |
webject
|
private String |
whereClause
|
Fields inherited from class wt.adapter.BasicWebjectDelegate |
ATTRIBUTE, CLASS, CLASS_ID, FIELD, GROUP_OUT, IDENTITY, OBJECT_ID, WHERE |
Fields inherited from class wt.adapter.WebjectConstants |
FAILURE, MESSAGE, OBJECT, OUTPUT, STATUS, SUCCESS |
Constructor Summary | |
WebjectDelegateTemplate()
|
Method Summary | |
protected String[] |
getDefaultOutputAttributes(String className)
The subclass can override this method. |
protected abstract Enumeration |
getOutputObjects(Enumeration inputObjects)
This method must be overridden in every concrete subclass. |
protected String |
getParam(String key)
|
protected String[] |
getParams(String key)
|
protected void |
init(Webject webject,
Group groupIn)
|
Task |
invoke(Task task,
Properties props,
com.infoengine.log.ServiceWriter log)
Provides a template implementation for the invoke method. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(WebjectDelegateTemplate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class wt.adapter.WebjectConstants |
readVersion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static boolean DEBUG
private static boolean VERBOSE
private Webject webject
private String whereClause
private String targetClass
private String[] outputAttributeNames
private Enumeration targetObjects
private Enumeration outputObjects
private Group groupIn
Constructor Detail |
public WebjectDelegateTemplate()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class BasicWebjectDelegate
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class BasicWebjectDelegate
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WebjectDelegateTemplate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
protected abstract Enumeration getOutputObjects(Enumeration inputObjects) throws WTException
inputObjects
-
WTException
protected String[] getDefaultOutputAttributes(String className) throws WTException
className
-
WTException
public Task invoke(Task task, Properties props, com.infoengine.log.ServiceWriter log) throws WebjectServiceException, WTException
invoke
in interface WebjectDelegate
task
- props
- log
-
WebjectServiceException
WTException
protected void init(Webject webject, Group groupIn)
protected String getParam(String key)
protected String[] getParams(String key)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |