com.sun.sgs.internal
Interface ManagerLocator


public interface ManagerLocator

Defines the boundary API for accessing managers for use by the current application. Any implementation of the Project Darkstar API should provide a single implementation of this interface that is to be used by the InternalContext to locate managers in the system.

See Also:
AppContext, InternalContext.setManagerLocator

Method Summary
 ChannelManager getChannelManager()
          Returns the ChannelManager for use by the current application.
 DataManager getDataManager()
          Returns the DataManager for use by the current application.
<T> T
getManager(Class<T> type)
          Returns a manager of the specified type for use by the current application.
 TaskManager getTaskManager()
          Returns the TaskManager for use by the current application.
 

Method Detail

getChannelManager

ChannelManager getChannelManager()
Returns the ChannelManager for use by the current application.

Returns:
the ChannelManager for the current application
Throws:
ManagerNotFoundException - if the ChannelManager cannot be located

getDataManager

DataManager getDataManager()
Returns the DataManager for use by the current application.

Returns:
the DataManager for the current application
Throws:
ManagerNotFoundException - if the DataManager cannot be located

getTaskManager

TaskManager getTaskManager()
Returns the TaskManager for use by the current application.

Returns:
the TaskManager for the current application
Throws:
ManagerNotFoundException - if the TaskManager cannot be located

getManager

<T> T getManager(Class<T> type)
Returns a manager of the specified type for use by the current application.

Type Parameters:
T - the type of the manager
Parameters:
type - a class representing the type of the manager
Returns:
the manager of the specified type for the current application
Throws:
ManagerNotFoundException - if no manager is found for the specified type

Project Darkstar, Version 0.9.9.6
2009-05-08 15:39:40

Copyright © 2007-2009 Sun Microsystems, Inc. All rights reserved