Package org.exoplatform.resolver

Examples of org.exoplatform.resolver.ApplicationResourceResolver


     * @param config, the servlet config that contains init params such as the path location of the XML configuration file for
     *        the WebUI framework
     */
    public PortalApplication(ServletConfig config) {
        sconfig_ = config;
        ApplicationResourceResolver resolver = new ApplicationResourceResolver();
        resolver.addResourceResolver(new ServletResourceResolver(config.getServletContext(), "war:"));
        resolver.addResourceResolver(new ServletResourceResolver(config.getServletContext(), "app:"));
        resolver.addResourceResolver(new ServletResourceResolver(config.getServletContext(), "system:"));
        resolver.addResourceResolver(new ServletResourceResolver(config.getServletContext().getContext("/eXoResources"),
                "resources:"));
        setResourceResolver(resolver);
    }
View Full Code Here


   public ResourceResolver getResourceResolver(String uri)
   {
      Application app = getApplication();
      while (app != null)
      {
         ApplicationResourceResolver appResolver = app.getResourceResolver();
         ResourceResolver resolver = appResolver.getResourceResolver(uri);
         if (resolver != null)
            return resolver;
         RequestContext pcontext = getParentAppRequestContext();
         if (pcontext != null)
            app = pcontext.getApplication();
View Full Code Here

   public MockApplication(Map<String, String> initParams, Map<String, URL> resources, ResourceBundle appRes)
   {
      initParams_ = initParams;
      appRes_ = appRes;
      ApplicationResourceResolver resolver = new ApplicationResourceResolver();
      resolver.addResourceResolver(new MockResourceResolver(resources));
      setResourceResolver(resolver);
   }
View Full Code Here

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

      ApplicationResourceResolver resolver = new ApplicationResourceResolver();
      resolver.addResourceResolver(new PortletResourceResolver(pcontext, "app:"));
      resolver.addResourceResolver(new PortletResourceResolver(pcontext, "par:"));
      setResourceResolver(resolver);
   }
View Full Code Here

            if (markup != null) {
                markup.writeTo(prcontext.getWriter());
            }
        } else {
            WebuiApplication app = (WebuiApplication) prcontext.getApplication();
            ApplicationResourceResolver resolver = app.getResourceResolver();
            WebuiBindingContext bcontext = new WebuiBindingContext(resolver, context.getWriter(), uicomponent, prcontext);
            bcontext.put(UIComponent.UICOMPONENT, uicomponent);
            bcontext.put("portletContent", markup);
            try {
                renderTemplate(uicomponent.getTemplate(), bcontext);
View Full Code Here

    public ResourceResolver getResourceResolver(String uri) {
        Application app = getApplication();
        RequestContext pcontext = this;
        while (app != null) {
            ApplicationResourceResolver appResolver = app.getResourceResolver();
            ResourceResolver resolver = appResolver.getResourceResolver(uri);
            if (resolver != null) {
                return resolver;
            }
            pcontext = pcontext.getParentAppRequestContext();
            if (pcontext != null) {
View Full Code Here

    public ResourceResolver getResourceResolver(String uri) {
        Application app = getApplication();
        RequestContext pcontext = this;
        while (app != null) {
            ApplicationResourceResolver appResolver = app.getResourceResolver();
            ResourceResolver resolver = appResolver.getResourceResolver(uri);
            if (resolver != null) {
                return resolver;
            }
            pcontext = pcontext.getParentAppRequestContext();
            if (pcontext != null) {
View Full Code Here

   public ResourceResolver getResourceResolver(String uri)
   {
      Application app = getApplication();
      while (app != null)
      {
         ApplicationResourceResolver appResolver = app.getResourceResolver();
         ResourceResolver resolver = appResolver.getResourceResolver(uri);
         if (resolver != null)
            return resolver;
         RequestContext pcontext = getParentAppRequestContext();
         if (pcontext != null)
            app = pcontext.getApplication();
View Full Code Here

         }
      }
      else
      {
         WebuiApplication app = (WebuiApplication)prcontext.getApplication();
         ApplicationResourceResolver resolver = app.getResourceResolver();
         WebuiBindingContext bcontext = new WebuiBindingContext(resolver, context.getWriter(), uicomponent, prcontext);
         bcontext.put(UIComponent.UICOMPONENT, uicomponent);
         bcontext.put("portletContent", markup);
         bcontext.put("portletTitle", portletTitle);
         try
View Full Code Here

   public MockApplication(Map<String, String> initParams, Map<String, URL> resources, ResourceBundle appRes)
   {
      initParams_ = initParams;
      appRes_ = appRes;
      ApplicationResourceResolver resolver = new ApplicationResourceResolver();
      resolver.addResourceResolver(new MockResourceResolver(resources));
      setResourceResolver(resolver);
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.resolver.ApplicationResourceResolver

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.