FileDocCategorySizeDatePackage
EventStack.javaAPI DocGlassfish v2 API4291Fri May 04 22:33:34 BST 2007com.sun.enterprise.admin.event

EventStack

public class EventStack extends Object
This object encapsulates event related information in the thread local.
author
Nazrul Islam
since
JDK1.4

Fields Summary
private List
_configChangeList
private String
_target
private String
_xPath
private List
_events
private com.sun.enterprise.config.ConfigContext
_ctx
Constructors Summary
Methods Summary
public voidaddEvent(AdminEvent event)
Adds an event to the event stack.

param
event newly created event

        _events.add(event);
    
public java.util.ListgetConfigChangeList()
Returns the config changes associated with this event.

return
list of config changes

        return _configChangeList;
    
public com.sun.enterprise.config.ConfigContextgetConfigContext()
Returns the admin config context associated with this event.

return
admin config context

        return _ctx;
    
public java.util.ListgetEvents()
Returns all events from the stack.

return
list of events from the stack

        return _events;
    
public java.lang.StringgetTarget()
Returns the target for this event.

return
the target for this event

        return _target;
    
public java.lang.StringgetXPath()

        return _xPath;
    
public voidresetEvents()
resets the events in the event stack.

        _events.clear();
    
public voidsetConfigChangeList(java.util.List list)
Sets the config changes for this event.

param
list list of config changes

        _configChangeList = list;
    
public voidsetConfigContext(com.sun.enterprise.config.ConfigContext ctx)
Sets the admin config context to the event stack.

param
ctx admin config context

        _ctx = ctx;
    
public voidsetTarget(java.lang.String target)
Sets the target destination for this event.

param
target target destination of the event

        _target = target;
    
public voidsetXPath(java.lang.String xPath)

        _xPath = xPath;