LifecycleListener
public class ListenerCreateRule.OptionalListener extends java.lang.Object implements LifecycleListener
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
className |
|
protected java.util.HashMap<java.lang.String,java.lang.String> |
properties |
Constructor | Description |
---|---|
OptionalListener(java.lang.String className) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getClassName() |
|
java.util.Set<java.lang.String> |
getProperties() |
Return a set of the property keys.
|
java.lang.Object |
getProperty(java.lang.String name) |
Return a property from the protocol handler.
|
void |
lifecycleEvent(LifecycleEvent event) |
Acknowledge the occurrence of the specified event.
|
boolean |
setProperty(java.lang.String name,
java.lang.String value) |
Set the given property.
|
protected final java.lang.String className
protected final java.util.HashMap<java.lang.String,java.lang.String> properties
public java.lang.String getClassName()
public void lifecycleEvent(LifecycleEvent event)
LifecycleListener
lifecycleEvent
in interface LifecycleListener
event
- LifecycleEvent that has occurredpublic java.util.Set<java.lang.String> getProperties()
public java.lang.Object getProperty(java.lang.String name)
name
- the property namepublic boolean setProperty(java.lang.String name, java.lang.String value)
name
- the property namevalue
- the property valuetrue
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.