LimeWire Consolidated API

com.limegroup.gnutella
Class LifecycleManagerImpl

java.lang.Object
  extended by com.limegroup.gnutella.LifecycleManagerImpl
All Implemented Interfaces:
LifecycleManager

public class LifecycleManagerImpl
extends Object
implements LifecycleManager

Provides an implementation of the LifecycleManager to start and stop the LimeWire components.


Constructor Summary
LifecycleManagerImpl(ServiceRegistry serviceRegistry)
           
 
Method Summary
 void addListener(EventListener<LifeCycleEvent> listener)
           
 long getStartFinishedTime()
          Gets the time this finished starting.
 void installListeners()
          Phase 1 of the startup process -- wires listeners together.
 boolean isLoaded()
           
 boolean isShutdown()
           
 boolean isStarted()
           
 void loadBackgroundTasks()
          Phase 2 of the startup process -- loads any tasks that can be run in the background.
 boolean removeListener(EventListener<LifeCycleEvent> listener)
           
 void shutdown()
          Shuts down anything that requires shutdown.
 void shutdown(String toExecute)
          Shuts down & executes something after shutdown completes.
 void start()
          The core of the startup process, initializes all classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifecycleManagerImpl

@Inject
public LifecycleManagerImpl(ServiceRegistry serviceRegistry)
Method Detail

isLoaded

public boolean isLoaded()
Specified by:
isLoaded in interface LifecycleManager

isStarted

public boolean isStarted()
Specified by:
isStarted in interface LifecycleManager

isShutdown

public boolean isShutdown()
Specified by:
isShutdown in interface LifecycleManager

installListeners

public void installListeners()
Description copied from interface: LifecycleManager
Phase 1 of the startup process -- wires listeners together.

Specified by:
installListeners in interface LifecycleManager

loadBackgroundTasks

public void loadBackgroundTasks()
Description copied from interface: LifecycleManager
Phase 2 of the startup process -- loads any tasks that can be run in the background.

Specified by:
loadBackgroundTasks in interface LifecycleManager

start

public void start()
Description copied from interface: LifecycleManager
The core of the startup process, initializes all classes.

Specified by:
start in interface LifecycleManager

shutdown

public void shutdown()
Description copied from interface: LifecycleManager
Shuts down anything that requires shutdown.

Specified by:
shutdown in interface LifecycleManager

shutdown

public void shutdown(String toExecute)
Description copied from interface: LifecycleManager
Shuts down & executes something after shutdown completes.

Specified by:
shutdown in interface LifecycleManager

getStartFinishedTime

public long getStartFinishedTime()
Description copied from interface: LifecycleManager
Gets the time this finished starting.

Specified by:
getStartFinishedTime in interface LifecycleManager

addListener

public void addListener(EventListener<LifeCycleEvent> listener)
Specified by:
addListener in interface LifecycleManager

removeListener

public boolean removeListener(EventListener<LifeCycleEvent> listener)
Specified by:
removeListener in interface LifecycleManager

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.