Package org.exoplatform.services.resources

Examples of org.exoplatform.services.resources.PortletConfigRegistry


        String contextName = pcontext.getPortletContextName();
        applicationId_ = contextName + "/" + config.getPortletName();

        // Dirty fix for GTNPORTAL-2700
        ExoContainer container = ExoContainerContext.getCurrentContainer();
        PortletConfigRegistry registry = (PortletConfigRegistry) container
                .getComponentInstanceOfType(PortletConfigRegistry.class);
        registry.putPortletConfig(config.getPortletName(), config);
    }
View Full Code Here


                        application.onDestroy();
                        controller.removeApplication(applicationId_);
                    }
                }

                PortletConfigRegistry registry = (PortletConfigRegistry) container
                        .getComponentInstanceOfType(PortletConfigRegistry.class);
                if (registry != null) {
                    registry.removePortletConfig(getPortletName());
                }
            }

        } catch (Exception ex) {
            log.error("Error while destroying the porlet", ex);
View Full Code Here

     * @return
     * @throws Exception
     */
    protected ResourceBundle findApplicationResourceBundle() throws Exception {
        ExoContainer container = ExoContainerContext.getCurrentContainer();
        PortletConfigRegistry registry = (PortletConfigRegistry) container
                .getComponentInstanceOfType(PortletConfigRegistry.class);
        String portlet = getApplication().getApplicationName();
        PortletConfig config = registry.getPortletConfig(portlet);
        Locale locale = getLocale();
        if (config != null) {
            ResourceBundle result = config.getResourceBundle(locale);
            if (result != null) {
                return result;
View Full Code Here

         * A real fix should somehow retain a reference to producerPortletInvoker (and thus also transitive references to all
         * its successor Invokers) which is now done only in the first invocation of this start() method. In other words
         * federatingPortletInvoker should be able to keep one local Invoker per portal and not only one for all portals as it
         * is now.
         */
        container.registerComponentInstance(PortletConfigRegistry.class, new PortletConfigRegistry());

        // The portlet container invoker used by producer to dispatch to portlets
        ContainerPortletInvoker containerPortletInvoker = new ContainerPortletInvoker();

        // The portlet application deployer
View Full Code Here

         * A real fix should somehow retain a reference to producerPortletInvoker (and thus also transitive references to all
         * its successor Invokers) which is now done only in the first invocation of this start() method. In other words
         * federatingPortletInvoker should be able to keep one local Invoker per portal and not only one for all portals as it
         * is now.
         */
        container.registerComponentInstance(PortletConfigRegistry.class, new PortletConfigRegistry());

        // The portlet container invoker used by producer to dispatch to portlets
        ContainerPortletInvoker containerPortletInvoker = new ContainerPortletInvoker();

        // The portlet application deployer
View Full Code Here

     * @return
     * @throws Exception
     */
    protected ResourceBundle findApplicationResourceBundle() throws Exception {
        ExoContainer container = ExoContainerContext.getCurrentContainer();
        PortletConfigRegistry registry = (PortletConfigRegistry) container
                .getComponentInstanceOfType(PortletConfigRegistry.class);
        String portlet = getApplication().getApplicationName();
        PortletConfig config = registry.getPortletConfig(portlet);
        Locale locale = getLocale();
        if (config != null) {
            ResourceBundle result = config.getResourceBundle(locale);
            if (result != null) {
                return result;
View Full Code Here

        String contextName = pcontext.getPortletContextName();
        applicationId_ = contextName + "/" + config.getPortletName();

        // Dirty fix for GTNPORTAL-2700
        ExoContainer container = ExoContainerContext.getCurrentContainer();
        PortletConfigRegistry registry = (PortletConfigRegistry) container
                .getComponentInstanceOfType(PortletConfigRegistry.class);
        registry.putPortletConfig(config.getPortletName(), config);
    }
View Full Code Here

         * A real fix should somehow retain a reference to producerPortletInvoker (and thus also transitive references to all
         * its successor Invokers) which is now done only in the first invocation of this start() method. In other words
         * federatingPortletInvoker should be able to keep one local Invoker per portal and not only one for all portals as it
         * is now.
         */
        container.registerComponentInstance(PortletConfigRegistry.class, new PortletConfigRegistry());

        // The portlet container invoker used by producer to dispatch to portlets
        ContainerPortletInvoker containerPortletInvoker = new ContainerPortletInvoker();

        // The portlet application deployer
View Full Code Here

TOP

Related Classes of org.exoplatform.services.resources.PortletConfigRegistry

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.