at.ac.tuwien.infosys.sm4all.copal.api.listener
Class BaseListener

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.listener.BaseListener
All Implemented Interfaces:
ContextListener
Direct Known Subclasses:
AnnotatedListener, RESTfulListener

public abstract class BaseListener
extends java.lang.Object
implements ContextListener

Helper class for ContextListeners.

Author:
sanjin

Constructor Summary
protected BaseListener(java.lang.String name)
          Use specified name as return value for getName() method.
 
Method Summary
 java.lang.String getName()
          Returns the globally unique name of this ContextListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface at.ac.tuwien.infosys.sm4all.copal.api.listener.ContextListener
onEvent
 

Constructor Detail

BaseListener

protected BaseListener(java.lang.String name)
Use specified name as return value for getName() method.

Parameters:
name - the name of the context listener.
Throws:
java.lang.NullPointerException - if specified name is null.
java.lang.IllegalArgumentException - if specified name is an empty or blank string.
Method Detail

getName

public final java.lang.String getName()
Description copied from interface: ContextListener
Returns the globally unique name of this ContextListener.

Specified by:
getName in interface ContextListener
Returns:
the globally unique name of this ContextListener.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.