org.apache.felix.useradmin.impl
Class UserAdminEventDispatcherImpl

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.felix.useradmin.impl.UserAdminEventDispatcherImpl
All Implemented Interfaces:
Runnable, UserAdminEventDispatcher

public class UserAdminEventDispatcherImpl
extends Thread
implements UserAdminEventDispatcher

Dispatching UserAdmin events.

Version:
$Rev$ $Date$
See Also:
UserAdminEventDispatcher

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
UserAdminEventDispatcherImpl(BundleContext context)
          This constructor is used to create UserAdmin event dispatcher.
 
Method Summary
 void close()
          Closing UserAdminTrackers and putting running state to false.
 void dispatchEventAsynchronusly(UserAdminEvent userAdminEvent)
          Dispatching UserAdminEvent asynchronously.
 void run()
           
 void start()
          Starting dispatcher thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserAdminEventDispatcherImpl

public UserAdminEventDispatcherImpl(BundleContext context)
This constructor is used to create UserAdmin event dispatcher. It creating and opening two trackers for UserAdminListener and EventAdmin service. Setting thread as a daemon.

Parameters:
context - bundle context
Method Detail

start

public void start()
Description copied from interface: UserAdminEventDispatcher
Starting dispatcher thread.

Specified by:
start in interface UserAdminEventDispatcher
Overrides:
start in class Thread
See Also:
org.apache.felix.useradmin.impl.UserAdminEventDispatcher#start()

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
org.apache.felix.useradmin.impl.UserAdminEventDispatcher#run()

dispatchEventAsynchronusly

public void dispatchEventAsynchronusly(UserAdminEvent userAdminEvent)
Description copied from interface: UserAdminEventDispatcher
Dispatching UserAdminEvent asynchronously.

Specified by:
dispatchEventAsynchronusly in interface UserAdminEventDispatcher
See Also:
org.apache.felix.useradmin.impl.UserAdminEventDispatcher#dispatchEventAsynchronusly(org.osgi.service.useradmin .UserAdminEvent)

close

public void close()
Closing UserAdminTrackers and putting running state to false.

Specified by:
close in interface UserAdminEventDispatcher
See Also:
org.apache.felix.useradmin.impl.UserAdminEventDispatcher#close()


Copyright © 2011 Apache Software Foundation. All Rights Reserved.