com.wewebu.ow.server.util
Class OwEvent

java.lang.Object
  extended by com.wewebu.ow.server.util.OwEvent
Direct Known Subclasses:
OwRepositoryContext.OwConfigChangeEvent

public abstract class OwEvent
extends Object

Utility class to manage a collection of listeners through one single instance. The instance will automatically dispatch event to the subscribed listeners.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Nested Class Summary
static class OwEvent.EmptyIterator
           Simple empty iterator.
 
Constructor Summary
OwEvent()
           
 
Method Summary
 void addEventListener(EventListener listener_p)
          add a event listener to be notified
protected  Iterator getIterator()
          get a iterator that iterates the subscribed listeners
 void removeEventListener(EventListener listener_p)
          add a config change event listener to be notified about config changes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwEvent

public OwEvent()
Method Detail

addEventListener

public void addEventListener(EventListener listener_p)
add a event listener to be notified

Parameters:
listener_p -

removeEventListener

public void removeEventListener(EventListener listener_p)
add a config change event listener to be notified about config changes

Parameters:
listener_p -

getIterator

protected Iterator getIterator()
get a iterator that iterates the subscribed listeners

Returns:
Iterator


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.