protected List<ConfiguredServletMapping> getConfiguredFacesServletMappings() { String appConfigAttrName = ApplicationConfig.class.getName(); ExternalContext externalContext = facesContext.getExternalContext(); Map<String, Object> applicationMap = externalContext.getApplicationMap(); ApplicationConfig applicationConfig = (ApplicationConfig) applicationMap.get(appConfigAttrName); FacesConfig facesConfig = applicationConfig.getFacesConfig(); return facesConfig.getConfiguredFacesServletMappings(); }
protected List<ConfiguredServletMapping> getConfiguredFacesServletMappings() { String appConfigAttrName = ApplicationConfig.class.getName(); ExternalContext externalContext = facesContext.getExternalContext(); Map<String, Object> applicationMap = externalContext.getApplicationMap(); ApplicationConfig applicationConfig = (ApplicationConfig) applicationMap.get(appConfigAttrName); FacesConfig facesConfig = applicationConfig.getFacesConfig(); return facesConfig.getConfiguredFacesServletMappings(); }
String appConfigAttrName = ApplicationConfig.class.getName(); ApplicationConfig applicationConfig = (ApplicationConfig) applicationMap.get(appConfigAttrName); FacesConfig facesConfig = applicationConfig.getFacesConfig(); List<ConfiguredServletMapping> configuredFacesServletMappings = facesConfig.getConfiguredFacesServletMappings();
BeanManagerFactory beanManagerFactory = (BeanManagerFactory) BridgeFactoryFinder.getFactory( BeanManagerFactory.class); BeanManager beanManager = beanManagerFactory.getBeanManager(applicationConfig.getFacesConfig());
BeanManagerFactory beanManagerFactory = (BeanManagerFactory) BridgeFactoryFinder.getFactory( BeanManagerFactory.class); BeanManager beanManager = beanManagerFactory.getBeanManager(applicationConfig.getFacesConfig());
FacesConfig facesConfig = applicationConfig.getFacesConfig(); List<ConfiguredElement> configuredFactoryExtensions = facesConfig.getConfiguredFactoryExtensions();
FacesConfig facesConfig = applicationConfig.getFacesConfig(); List<ConfiguredElement> configuredFactoryExtensions = facesConfig.getConfiguredFactoryExtensions();
FacesConfig facesConfig = applicationConfig.getFacesConfig(); List<ConfiguredElement> configuredFactoryExtensions = facesConfig.getConfiguredFactoryExtensions();
public ApplicationScopeMap(BridgeContext bridgeContext) { BeanManagerFactory beanManagerFactory = (BeanManagerFactory) BridgeFactoryFinder.getFactory( BeanManagerFactory.class); this.portletContext = bridgeContext.getPortletContext(); String appConfigAttrName = ApplicationConfig.class.getName(); ApplicationConfig applicationConfig = (ApplicationConfig) this.portletContext.getAttribute(appConfigAttrName); this.beanManager = beanManagerFactory.getBeanManager(applicationConfig.getFacesConfig()); // Determines whether or not methods annotated with the @PreDestroy annotation are preferably invoked // over the @BridgePreDestroy annotation. PortletConfig portletConfig = bridgeContext.getPortletConfig(); this.preferPreDestroy = PortletConfigParam.PreferPreDestroy.getBooleanValue(portletConfig); PreDestroyInvokerFactory preDestroyInvokerFactory = (PreDestroyInvokerFactory) BridgeFactoryFinder.getFactory( PreDestroyInvokerFactory.class); this.preDestroyInvoker = preDestroyInvokerFactory.getPreDestroyInvoker(this); }
PortletContext portletContext = portletConfig.getPortletContext(); ApplicationConfig applicationConfig = (ApplicationConfig) portletContext.getAttribute(appConfigAttrName); FacesConfig facesConfig = applicationConfig.getFacesConfig(); bridgeConfigAttributeMap.put(BridgeConfigAttributeMap.CONFIGURED_FACES_SERVLET_MAPPINGS, facesConfig.getConfiguredFacesServletMappings());
PortletContext portletContext = portletConfig.getPortletContext(); ApplicationConfig applicationConfig = (ApplicationConfig) portletContext.getAttribute(appConfigAttrName); FacesConfig facesConfig = applicationConfig.getFacesConfig(); bridgeConfigAttributeMap.put(BridgeConfigAttributeMap.CONFIGURED_FACES_SERVLET_MAPPINGS, facesConfig.getConfiguredFacesServletMappings());
public ApplicationScopeMap(BridgeContext bridgeContext) { BeanManagerFactory beanManagerFactory = (BeanManagerFactory) BridgeFactoryFinder.getFactory( BeanManagerFactory.class); this.portletContext = bridgeContext.getPortletContext(); String appConfigAttrName = ApplicationConfig.class.getName(); ApplicationConfig applicationConfig = (ApplicationConfig) this.portletContext.getAttribute(appConfigAttrName); this.beanManager = beanManagerFactory.getBeanManager(applicationConfig.getFacesConfig()); // Determines whether or not methods annotated with the @PreDestroy annotation are preferably invoked // over the @BridgePreDestroy annotation. PortletConfig portletConfig = bridgeContext.getPortletConfig(); this.preferPreDestroy = PortletConfigParam.PreferPreDestroy.getBooleanValue(portletConfig); PreDestroyInvokerFactory preDestroyInvokerFactory = (PreDestroyInvokerFactory) BridgeFactoryFinder.getFactory( PreDestroyInvokerFactory.class); this.preDestroyInvoker = preDestroyInvokerFactory.getPreDestroyInvoker(this); }
ApplicationConfig applicationConfig = (ApplicationConfig) servletContext.getAttribute( appConfigAttrName); BeanManager beanManager = beanManagerFactory.getBeanManager(applicationConfig.getFacesConfig());
ApplicationConfig applicationConfig = (ApplicationConfig) servletContext.getAttribute( appConfigAttrName); BeanManager beanManager = beanManagerFactory.getBeanManager(applicationConfig.getFacesConfig());
/** * Constructs a new SessionMap object instance. * * @param bridgeContext The current bridge context. * @param scope The scope of the session map, which can be PortletSession.PORTLET_SCOPE or * PortletSession.APPLICATION_SCOPE */ public SessionScopeMap(BridgeContext bridgeContext, int scope) { String appConfigAttrName = ApplicationConfig.class.getName(); PortletContext portletContext = bridgeContext.getPortletContext(); ApplicationConfig applicationConfig = (ApplicationConfig) portletContext.getAttribute(appConfigAttrName); BeanManagerFactory beanManagerFactory = (BeanManagerFactory) BridgeFactoryFinder.getFactory( BeanManagerFactory.class); this.beanManager = beanManagerFactory.getBeanManager(applicationConfig.getFacesConfig()); ContextMapFactory contextMapFactory = (ContextMapFactory) BridgeFactoryFinder.getFactory( ContextMapFactory.class); Map<String, Object> applicationScopeMap = contextMapFactory.getApplicationScopeMap(bridgeContext); PreDestroyInvokerFactory preDestroyInvokerFactory = (PreDestroyInvokerFactory) BridgeFactoryFinder.getFactory( PreDestroyInvokerFactory.class); this.preDestroyInvoker = preDestroyInvokerFactory.getPreDestroyInvoker(applicationScopeMap); PortletRequest portletRequest = bridgeContext.getPortletRequest(); this.portletSession = portletRequest.getPortletSession(); // Determines whether or not methods annotated with the @PreDestroy annotation are preferably invoked // over the @BridgePreDestroy annotation. PortletConfig portletConfig = bridgeContext.getPortletConfig(); this.preferPreDestroy = PortletConfigParam.PreferPreDestroy.getBooleanValue(portletConfig); this.scope = scope; }
/** * Constructs a new SessionMap object instance. * * @param bridgeContext The current bridge context. * @param scope The scope of the session map, which can be PortletSession.PORTLET_SCOPE or * PortletSession.APPLICATION_SCOPE */ public SessionScopeMap(BridgeContext bridgeContext, int scope) { String appConfigAttrName = ApplicationConfig.class.getName(); PortletContext portletContext = bridgeContext.getPortletContext(); ApplicationConfig applicationConfig = (ApplicationConfig) portletContext.getAttribute(appConfigAttrName); BeanManagerFactory beanManagerFactory = (BeanManagerFactory) BridgeFactoryFinder.getFactory( BeanManagerFactory.class); this.beanManager = beanManagerFactory.getBeanManager(applicationConfig.getFacesConfig()); ContextMapFactory contextMapFactory = (ContextMapFactory) BridgeFactoryFinder.getFactory( ContextMapFactory.class); Map<String, Object> applicationScopeMap = contextMapFactory.getApplicationScopeMap(bridgeContext); PreDestroyInvokerFactory preDestroyInvokerFactory = (PreDestroyInvokerFactory) BridgeFactoryFinder.getFactory( PreDestroyInvokerFactory.class); this.preDestroyInvoker = preDestroyInvokerFactory.getPreDestroyInvoker(applicationScopeMap); PortletRequest portletRequest = bridgeContext.getPortletRequest(); this.portletSession = portletRequest.getPortletSession(); // Determines whether or not methods annotated with the @PreDestroy annotation are preferably invoked // over the @BridgePreDestroy annotation. PortletConfig portletConfig = bridgeContext.getPortletConfig(); this.preferPreDestroy = PortletConfigParam.PreferPreDestroy.getBooleanValue(portletConfig); this.scope = scope; }
BeanManagerFactory beanManagerFactory = (BeanManagerFactory) BridgeFactoryFinder.getFactory( BeanManagerFactory.class); this.beanManager = beanManagerFactory.getBeanManager(applicationConfig.getFacesConfig());
BeanManagerFactory beanManagerFactory = (BeanManagerFactory) BridgeFactoryFinder.getFactory( BeanManagerFactory.class); this.beanManager = beanManagerFactory.getBeanManager(applicationConfig.getFacesConfig());