@Override public void init(FilterConfig filterConfig) throws ServletException { this.oAuthService = (OAuthService) ComponentManager.getInstance().get(OAuthService.class); this.oAuthHttpService = (OAuthHttpService) ComponentManager.getInstance().get(OAuthHttpService.class); this.securityService = (SecurityService) ComponentManager.getInstance().get(SecurityService.class); String initEncoding = filterConfig.getInitParameter(RequestFilter.CONFIG_CHARACTER_ENCODING); this.encoding = initEncoding != null ? initEncoding : "UTF-8"; }
/** * @return Returns the idManager. */ public IdManager getIdManager() { return (IdManager) ComponentManager.getInstance().get("idManager"); }
/** * @deprecated This method is redundant, not used by any known client, would * expose implementation details, and will be removed in a * future release. Use the ServerConfigurationService instead. */ @Deprecated public static java.util.Properties getConfig() { return getInstance().getConfig(); }
public IdManager getIdManager() { if (idManager == null) { idManager = (IdManager) ComponentManager.getInstance().get("idManager"); } return idManager; }
@SuppressWarnings("unchecked") public <T> T findService(Class<T> type) { return (T) ComponentManager.getInstance().get(type); }
protected PortalParamManager getPortalParamManager() { return (PortalParamManager) ComponentManager.getInstance().get(PortalParamManager.class.getName()); }
protected FieldValueWrapperFactory getWrapperFactory() { if (wrapperFactory == null) { wrapperFactory = (FieldValueWrapperFactory) ComponentManager.getInstance().get("fieldValueWrapperFactory"); } return wrapperFactory; }
protected IdManager getIdManager() { if (idManager == null) { idManager = (IdManager) ComponentManager.getInstance().get("idManager"); } return idManager; }
public SiteEmailNotificationSyllabus() { cm = ComponentManager.getInstance(); syllabusManager = (org.sakaiproject.api.app.syllabus.SyllabusManager) cm.get(SYLLABUS_MANAGER); }
protected PortalParamManager getPortalParamManager() { return (PortalParamManager) ComponentManager.getInstance().get(PortalParamManager.class.getName()); }
public static boolean contains(String ifaceName) { return getInstance().contains(ifaceName); }
public static void close() { getInstance().close(); }
protected ControllerFilterManager getControllerFilterManager() { return (ControllerFilterManager) ComponentManager.getInstance().get("controllerFilterManager"); } }
public static Object get(String ifaceName) { return getInstance().get(ifaceName); }
/** * Initialize the root web application context. */ @Override public void contextInitialized(ServletContextEvent event) { initWebApplicationContext(event.getServletContext()); // increment the count of children for the component manager ((SpringCompMgr) ComponentManager.getInstance()).addChildAc(); }
public void init() { ComponentManager cm = org.sakaiproject.component.cover.ComponentManager .getInstance(); renderEngineFactory = (RenderEngineFactory) load(cm, RenderEngineFactory.class .getName()); renderContextFactory = (RenderContextFactory) load(cm, RenderContextFactory.class.getName()); }
/** * Close the root web application context. */ @Override public void contextDestroyed(ServletContextEvent event) { closeWebApplicationContext(event.getServletContext()); cleanupAttributes(event.getServletContext()); log.debug("Destroying Components in {}", event.getServletContext().getServletContextName()); // decrement the count of children for the component manager ((SpringCompMgr) ComponentManager.getInstance()).removeChildAc(); }
public void init() { ComponentManager cm = org.sakaiproject.component.cover.ComponentManager .getInstance(); objectService = (RWikiObjectService) load(cm, RWikiObjectService.class .getName()); securityService = (RWikiSecurityService) load(cm, RWikiSecurityService.class.getName()); siteService = (SiteService) load(cm, SiteService.class.getName()); entityManager = (EntityManager) load(cm, EntityManager.class.getName()); }
@Override public void init(FilterConfig filterConfig) throws ServletException { ComponentManager componentManager = org.sakaiproject.component.cover.ComponentManager.getInstance(); oAuthHttpService = (OAuthHttpService) componentManager.get(OAuthHttpService.class); sessionManager = (SessionManager) componentManager.get(SessionManager.class); userDirectoryService = (UserDirectoryService) componentManager.get(UserDirectoryService.class); usageSessionService = (UsageSessionService) componentManager.get(UsageSessionService.class); // authenticationManager = (AuthenticationManager) componentManager.get(AuthenticationManager.class); }
@Override public void init(FilterConfig filterConfig) throws ServletException { ComponentManager componentManager = org.sakaiproject.component.cover.ComponentManager.getInstance(); oAuthHttpService = (OAuthHttpService) componentManager.get(OAuthHttpService.class); sessionManager = (SessionManager) componentManager.get(SessionManager.class); userDirectoryService = (UserDirectoryService) componentManager.get(UserDirectoryService.class); usageSessionService = (UsageSessionService) componentManager.get(UsageSessionService.class); // authenticationManager = (AuthenticationManager) componentManager.get(AuthenticationManager.class); }