154155156157158159160161162163
* * @return the context's <code>DataManager</code> */ DataManager getDataManager() { if (dataManager == null) { throw new ManagerNotFoundException("this application is running " + "without a DataManager"); } return dataManager; }
167168169170171172173174175176
* * @return the context's <code>TaskManager</code> */ TaskManager getTaskManager() { if (taskManager == null) { throw new ManagerNotFoundException("this application is running " + "without a TaskManager"); } return taskManager; }
191192193194195196197198199
*/ <T> T getManager(Class<T> type) { try { return managerComponents.getComponent(type); } catch (MissingResourceException mre) { throw new ManagerNotFoundException("couldn't find manager: " + type.getName()); } }