Examples of ResourceHandler


Examples of br.com.caelum.vraptor.ioc.ResourceHandler

    private final Logger logger = LoggerFactory.getLogger(ResourceRegistrar.class);

  private ResourceHandler resourceHandler;

    public ResourceRegistrar(Router router) {
        resourceHandler = new ResourceHandler(router);
    }
View Full Code Here

Examples of com.agiletec.plugins.jacms.aps.system.services.resource.parse.ResourceHandler

    protected void fillEmptyResourceFromXml(ResourceInterface resource, String xml) throws ApsSystemException {
      try {
      SAXParserFactory parseFactory = SAXParserFactory.newInstance();     
        SAXParser parser = parseFactory.newSAXParser();
        InputSource is = new InputSource(new StringReader(xml));
        ResourceHandler handler = new ResourceHandler(resource, this.getCategoryManager());
        parser.parse(is, handler);
      } catch (Throwable t) {
        ApsSystemUtils.logThrowable(t, this, "fillEmptyResourceFromXml");
        throw new ApsSystemException("Error on loading resource", t);
      }
View Full Code Here

Examples of com.caucho.config.j2ee.ResourceHandler

      _injectionMap.put(PersistenceContext.class,
                        new PersistenceContextHandler(this));
      _injectionMap.put(PersistenceUnit.class,
                        new PersistenceUnitHandler(this));
      _injectionMap.put(Resource.class,
                        new ResourceHandler(this));
      _injectionMap.put(EJB.class,
                        new EjbHandler(this));
      _injectionMap.put(EJBs.class,
                        new EjbHandler(this));
      _injectionMap.put(DataSourceDefinition.class,
View Full Code Here

Examples of com.corundumstudio.socketio.handler.ResourceHandler

        packetHandler = new PacketHandler(packetListener, decoder, namespacesHub);
        authorizeHandler = new AuthorizeHandler(connectPath, scheduler, configuration, namespacesHub);
        xhrPollingTransport = new XHRPollingTransport(connectPath, ackManager, this, scheduler, authorizeHandler, configuration);
        webSocketTransport = new WebSocketTransport(connectPath, isSsl, ackManager, this, authorizeHandler, heartbeatHandler);
        flashSocketTransport = new FlashSocketTransport(connectPath, isSsl, ackManager, this, authorizeHandler, heartbeatHandler);
        resourceHandler = new ResourceHandler(configuration.getContext());
        socketIOEncoder = new SocketIOEncoder(encoder);
    }
View Full Code Here

Examples of io.undertow.server.handlers.resource.ResourceHandler

     *
     * @param resourceManager The resource manager to use
     * @return A new resource handler
     */
    public static ResourceHandler resource(final ResourceManager resourceManager) {
        return new ResourceHandler().setResourceManager(resourceManager).setDirectoryListingEnabled(false);
    }
View Full Code Here

Examples of io.undertow.server.handlers.resource.ResourceHandler

     *
     * @param resourceManager The resource manager to use
     * @return A new resource handler
     */
    public static ResourceHandler resource(final ResourceManager resourceManager) {
        return new ResourceHandler().setResourceManager(resourceManager).setDirectoryListingEnabled(false);
    }
View Full Code Here

Examples of io.undertow.server.handlers.resource.ResourceHandler

     *
     * @param resourceManager The resource manager to use
     * @return A new resource handler
     */
    public static ResourceHandler resource(final ResourceManager resourceManager) {
        return new ResourceHandler(resourceManager).setDirectoryListingEnabled(false);
    }
View Full Code Here

Examples of javax.faces.application.ResourceHandler

    }

    public void testCreateResource() throws Exception {
        setupFacesRequest();

        ResourceHandler resourceHandler = facesContext.getApplication().getResourceHandler();

        assertNotNull(resourceHandler.createResource("org.richfaces.resource.CacheableResourceImpl"));
        assertNotNull(resourceHandler.createResource("org.richfaces.resource.CacheableResourceImpl", ""));
        assertNotNull(resourceHandler.createResource("org.richfaces.resource.CacheableResourceImpl", null));
        assertNotNull(resourceHandler.createResource("defaultResourceHandlerResource.js"));
        assertNotNull(resourceHandler.createResource("libraryResource.js", "org.richfaces.resource.test"));
    }
View Full Code Here

Examples of javax.faces.application.ResourceHandler

    }

    public void testLibraryExists() throws Exception {
        setupFacesRequest();

        ResourceHandler resourceHandler = facesContext.getApplication().getResourceHandler();

        assertTrue(resourceHandler.libraryExists("org.richfaces.resource.test"));
    }
View Full Code Here

Examples of javax.faces.application.ResourceHandler

                this.resourceKey = ResourceConstants.JSF_UNCOMPRESSED;
            }
        }

        private Resource createResource(FacesContext facesContext, ResourceKey resourceInfo) {
            ResourceHandler resourceHandler = facesContext.getApplication().getResourceHandler();
            return resourceHandler.createResource(resourceInfo.getResourceName(), resourceInfo.getLibraryName());
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.