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