Package com.sun.sgs.app

Examples of com.sun.sgs.app.ManagerNotFoundException


     *
     * @return the context's <code>ChannelManager</code>
     */
    ChannelManager getChannelManager() {
        if (channelManager == null) {
            throw new ManagerNotFoundException("this application is running " +
                                               "without a ChannelManager");
        }
        return channelManager;
    }
View Full Code Here


     *
     * @return the context's <code>DataManager</code>
     */
    DataManager getDataManager() {
        if (dataManager == null) {
            throw new ManagerNotFoundException("this application is running " +
                                               "without a DataManager");
        }
        return dataManager;
    }
View Full Code Here

     *
     * @return the context's <code>TaskManager</code>
     */
    TaskManager getTaskManager() {
        if (taskManager == null) {
            throw new ManagerNotFoundException("this application is running " +
                                               "without a TaskManager");
        }
        return taskManager;
    }
View Full Code Here

     */
    <T> T getManager(Class<T> type) {
        try {
            return managerComponents.getComponent(type);
        } catch (MissingResourceException mre) {
            throw new ManagerNotFoundException("couldn't find manager: " +
                                               type.getName());
        }
    }
View Full Code Here

    }
   
    private void initEmptyAppContext() {
        managerLocator = EasyMock.createMock(ManagerLocator.class);
       
        ManagerNotFoundException m = new ManagerNotFoundException("not found");
       
        EasyMock.expect(managerLocator.getDataManager()).
                andThrow(m);
        EasyMock.expect(managerLocator.getChannelManager()).
                andThrow(m);
View Full Code Here

     *
     * @return the context's <code>ChannelManager</code>
     */
    ChannelManager getChannelManager() {
        if (channelManager == null) {
            throw new ManagerNotFoundException("this application is running " +
                                               "without a ChannelManager");
        }
        return channelManager;
    }
View Full Code Here

     *
     * @return the context's <code>DataManager</code>
     */
    DataManager getDataManager() {
        if (dataManager == null) {
            throw new ManagerNotFoundException("this application is running " +
                                               "without a DataManager");
        }
        return dataManager;
    }
View Full Code Here

     *
     * @return the context's <code>TaskManager</code>
     */
    TaskManager getTaskManager() {
        if (taskManager == null) {
            throw new ManagerNotFoundException("this application is running " +
                                               "without a TaskManager");
        }
        return taskManager;
    }
View Full Code Here

     */
    <T> T getManager(Class<T> type) {
        try {
            return managerComponents.getComponent(type);
        } catch (MissingResourceException mre) {
            throw new ManagerNotFoundException("couldn't find manager: " +
                                               type.getName());
        }
    }
View Full Code Here

     *
     * @return the context's <code>ChannelManager</code>
     */
    ChannelManager getChannelManager() {
        if (channelManager == null) {
            throw new ManagerNotFoundException("this application is running " +
                                               "without a ChannelManager");
        }
        return channelManager;
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.app.ManagerNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.