org.bibop.xml.xforge
Class VariablesBroker
java.lang.Object
|
+--org.bibop.xml.xforge.VariablesBroker
- public class VariablesBroker
- extends java.lang.Object
Broker for the variable passed to x:forge Components.
We need to be able to pass variables to different
components. Each component set shares a common context
which acts as a repository for objects being pushed into
or pulled from it. This class acts as a broker, given
a specific context, to identify, store and retrieve
variables.
- Version:
- 1.0
- Author:
- Alberto Garoffolo, Gianugo Rabellino
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.avalon.framework.logger.Logger log
broker
protected static VariablesBroker broker
contexts
protected java.util.Hashtable contexts
objectscontexts
protected java.util.Hashtable objectscontexts
VariablesBroker
private VariablesBroker()
enableLogging
public static void enableLogging(org.apache.avalon.framework.logger.Logger logger)
getBroker
public static VariablesBroker getBroker()
startContextScope
public void startContextScope(XForgeContext context)
throws XForgeException
XForgeException
endContextScope
public void endContextScope(XForgeContext context)
throws XForgeException
XForgeException
putVariable
public void putVariable(XForgeContext context,
java.lang.String name,
java.io.Serializable value)
throws XForgeException
XForgeException
getVariable
public java.io.Serializable getVariable(XForgeContext context,
java.lang.String name)
throws XForgeException
XForgeException
putObject
public void putObject(XForgeContext context,
java.lang.String name,
java.lang.Object value)
throws XForgeException
XForgeException
getObject
public java.lang.Object getObject(XForgeContext context,
java.lang.String name)
throws XForgeException
XForgeException
containsContext
public boolean containsContext(XForgeContext context)
throws XForgeException
XForgeException
beforeStart
private void beforeStart(ContextEventListener cel)
throws XForgeException
XForgeException
afterStart
private void afterStart(ContextEventListener cel)
throws XForgeException
XForgeException
beforeEnd
private void beforeEnd(ContextEventListener cel)
throws XForgeException
XForgeException
afterEnd
private void afterEnd(ContextEventListener cel)
throws XForgeException
XForgeException
reportEndingException
private void reportEndingException(XForgeException lastexception,
XForgeContext context)
throws XForgeException
XForgeException
Copyright © 2003 Bibop Research International. All Rights Reserved.