|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.config.ListenerConfig
public class ListenerConfig
Contains the configuration for an EventListener
. The configuration contains either the classname
of the EventListener implementation, or the actual EventListener instance.
Field Summary | |
---|---|
protected String |
className
|
protected EventListener |
implementation
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
ListenerConfig |
getAsReadOnly()
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String className
protected EventListener implementation
Constructor Detail |
---|
public ListenerConfig()
public ListenerConfig(String className)
className
- the name of the EventListener class.
IllegalArgumentException
- if className is null or an empty String.public ListenerConfig(ListenerConfig config)
public ListenerConfig(EventListener implementation)
implementation
- the implementation to use as EventListener.
IllegalArgumentException
- if the implementation is null.Method Detail |
---|
public ListenerConfig getAsReadOnly()
public String getClassName()
setClassName(String)
public ListenerConfig setClassName(String className)
className
- the name of the class of the EventListener.
IllegalArgumentException
- if className is null or an empty String.setImplementation(java.util.EventListener)
,
getClassName()
public EventListener getImplementation()
setImplementation(java.util.EventListener)
public ListenerConfig setImplementation(EventListener implementation)
implementation
- the EventListener implementation.
IllegalArgumentException
- the implementation is null.setClassName(String)
,
getImplementation()
public boolean isIncludeValue()
public boolean isLocal()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |