public class ListenerConfig extends Object
EventListener. The configuration contains either the classname
of the EventListener implementation, or the actual EventListener instance.| Modifier and Type | Field and Description |
|---|---|
protected String |
className |
protected EventListener |
implementation |
| Constructor and Description |
|---|
ListenerConfig()
Creates a ListenerConfig without className/implementation.
|
ListenerConfig(EventListener implementation)
Creates a ListenerConfig with the given implementation.
|
ListenerConfig(ListenerConfig config) |
ListenerConfig(String className)
Creates a ListenerConfig with the given className.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ListenerConfig |
getAsReadOnly()
Deprecated.
this method will be removed in 4.0; it is meant for internal usage only
|
String |
getClassName()
Returns the name of the class of the EventListener.
|
EventListener |
getImplementation()
Returns the EventListener implementation.
|
int |
hashCode() |
boolean |
isIncludeValue() |
boolean |
isLocal() |
ListenerConfig |
setClassName(String className)
Sets the class name of the EventListener.
|
ListenerConfig |
setImplementation(EventListener implementation)
Sets the EventListener implementation.
|
String |
toString() |
protected String className
protected EventListener implementation
public ListenerConfig()
public ListenerConfig(String className)
className - the name of the EventListener classIllegalArgumentException - if className is null or an empty Stringpublic ListenerConfig(ListenerConfig config)
public ListenerConfig(EventListener implementation)
implementation - the implementation to use as EventListenerIllegalArgumentException - if the implementation is nullpublic ListenerConfig getAsReadOnly()
public String getClassName()
setClassName(String)public ListenerConfig setClassName(String className)
If a implementation was set, it will be removed.
className - the name of the class of the EventListenerIllegalArgumentException - if className is null or an empty StringsetImplementation(java.util.EventListener),
getClassName()public EventListener getImplementation()
setImplementation(java.util.EventListener)public ListenerConfig setImplementation(EventListener implementation)
If a className was set, it will be removed.
implementation - the EventListener implementationIllegalArgumentException - the implementation is nullsetClassName(String),
getImplementation()public boolean isIncludeValue()
public boolean isLocal()
Copyright © 2017. All Rights Reserved.