|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jet.AbstractContextExtender
JET2Context.addPrivateData(String, Object)
and JET2Context.getPrivateData(String)
public abstract class AbstractContextExtender
Base class for extending JET2Context
. The JET execution context, JET2Context
, is capable of
storing private data for various extensions. Subclass this class to create such a private data extension. Steps to create an context
extension.
createExtendedData(JET2Context)
to return a object representing the private data of the context extension. This method is only called the first time
an extender is constructed for a particular context.
The method getExtendedData()
returns the data to the current context instance.JET2Context
and passes it to the super constructor. It is recommended that
this constructor be private.public static YourExtender getInstance(JET2Context)
method that returns an instance the
AbstractContextExtender subclass.
Constructor Summary | |
---|---|
protected |
AbstractContextExtender(JET2Context context)
Deprecated. |
Method Summary | |
---|---|
protected abstract java.lang.Object |
createExtendedData(JET2Context context)
Deprecated. Called by the AbstractContextExtender constructor if the extender's data has not yet been created in the context. |
JET2Context |
getContext()
Deprecated. Return the JET2Context that this extender instance is extending. |
protected java.lang.Object |
getExtendedData()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractContextExtender(JET2Context context)
Method Detail |
---|
protected abstract java.lang.Object createExtendedData(JET2Context context)
context
- the context in which the data will be created.
protected java.lang.Object getExtendedData()
public final JET2Context getContext()
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |