|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The process context is used to pass parameters to the processor, retrieve results and reserve context for engines. The context is created and maintained by the processor. The application can set parameters in the context and read processing results, and engines can save contexts and exchange information through it. It is recommended that context objects be named in distinct namespaces (e.g. "xml.stylesheet.url").
The activator should belong to the environment which created this processor, allowing engines to interact with execution environment. For example, the Servlet or EJB bean underwhich this processor is running. There is no guarantee that the activator will be any useful object.
Each context is also associated with a locale. Engines should use this locale for generating textual information, processing dates, sorting, and other locale-sensitive operations. Initially, the system default locale is used.
Processor
,
ProcessorEngine
Method Summary | |
java.util.Enumeration |
enumerate()
Returns an enumeration of all the object names. |
java.lang.Object |
getActivator()
Returns the object that activated this processor. |
java.util.Locale |
getLocale()
Returns the locale for processing. |
java.lang.Object |
getObject(java.lang.String name)
Returns the named object. |
void |
setLocale(java.util.Locale newLocale)
Sets the locale for processing. |
void |
setObject(java.lang.String name,
java.lang.Object object)
Associates the named value with an object. |
Method Detail |
public java.lang.Object getActivator()
public void setObject(java.lang.String name, java.lang.Object object)
getObject(java.lang.String)
. If object is null, the object
is removed.name
- The object nameobject
- The object, or nullpublic java.lang.Object getObject(java.lang.String name)
setObject(java.lang.String, java.lang.Object)
.name
- The object namepublic java.util.Enumeration enumerate()
setObject(java.lang.String, java.lang.Object)
and may be retrieved with getObject(java.lang.String)
.public java.util.Locale getLocale()
public void setLocale(java.util.Locale newLocale)
newLocale
- The new locale
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |