org.eclipse.osgi.framework.internal.core
Class ConsoleManager

java.lang.Object
  extended by org.eclipse.osgi.framework.internal.core.ConsoleManager
All Implemented Interfaces:
ServiceTrackerCustomizer<ConsoleSession,FrameworkConsole>

public class ConsoleManager
extends java.lang.Object
implements ServiceTrackerCustomizer<ConsoleSession,FrameworkConsole>


Field Summary
static java.lang.String PROP_CONSOLE
           
 
Constructor Summary
ConsoleManager(Framework framework, java.lang.String consolePropValue)
           
 
Method Summary
 FrameworkConsole addingService(ServiceReference<ConsoleSession> reference)
          A service is being added to the ServiceTracker.
 void modifiedService(ServiceReference<ConsoleSession> reference, FrameworkConsole service)
          A service tracked by the ServiceTracker has been modified.
 void removedService(ServiceReference<ConsoleSession> reference, FrameworkConsole service)
          A service tracked by the ServiceTracker has been removed.
static ConsoleManager startConsole(Framework framework)
           
 void stopConsole()
          Stops the OSGi Command console
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_CONSOLE

public static final java.lang.String PROP_CONSOLE
See Also:
Constant Field Values
Constructor Detail

ConsoleManager

public ConsoleManager(Framework framework,
                      java.lang.String consolePropValue)
Method Detail

startConsole

public static ConsoleManager startConsole(Framework framework)

stopConsole

public void stopConsole()
Stops the OSGi Command console


addingService

public FrameworkConsole addingService(ServiceReference<ConsoleSession> reference)
Description copied from interface: ServiceTrackerCustomizer
A service is being added to the ServiceTracker.

This method is called before a service which matched the search parameters of the ServiceTracker is added to the ServiceTracker. This method should return the service object to be tracked for the specified ServiceReference. The returned service object is stored in the ServiceTracker and is available from the getService and getServices methods.

Specified by:
addingService in interface ServiceTrackerCustomizer<ConsoleSession,FrameworkConsole>
Parameters:
reference - The reference to the service being added to the ServiceTracker.
Returns:
The service object to be tracked for the specified referenced service or null if the specified referenced service should not be tracked.

modifiedService

public void modifiedService(ServiceReference<ConsoleSession> reference,
                            FrameworkConsole service)
Description copied from interface: ServiceTrackerCustomizer
A service tracked by the ServiceTracker has been modified.

This method is called when a service being tracked by the ServiceTracker has had it properties modified.

Specified by:
modifiedService in interface ServiceTrackerCustomizer<ConsoleSession,FrameworkConsole>
Parameters:
reference - The reference to the service that has been modified.
service - The service object for the specified referenced service.

removedService

public void removedService(ServiceReference<ConsoleSession> reference,
                           FrameworkConsole service)
Description copied from interface: ServiceTrackerCustomizer
A service tracked by the ServiceTracker has been removed.

This method is called after a service is no longer being tracked by the ServiceTracker.

Specified by:
removedService in interface ServiceTrackerCustomizer<ConsoleSession,FrameworkConsole>
Parameters:
reference - The reference to the service that has been removed.
service - The service object for the specified referenced service.


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.