Examples of ApplicationHandler


Examples of jeeves.interfaces.ApplicationHandler

      info("Found handler : " +className);

      Class<?> c = Class.forName(className);

      ApplicationHandler h = (ApplicationHandler) c.newInstance();

      ServiceContext srvContext = _serviceMan.createServiceContext("AppHandler", _applicationContext);
      srvContext.setLanguage(_defaultLang);
      srvContext.setLogger(_appHandLogger);
      srvContext.setServlet(servlet);
      srvContext.setAsThreadLocal();

      try {
        info ("--- Starting handler --------------------------------------");

        Object context = h.start(handler, srvContext);

        _appHandlers.add(h);
        _serviceMan.registerContext(h.getContextName(), context);
                _monitorManager.initMonitorsForApp(srvContext);

        info("--- Handler started ---------------------------------------");
      } catch (Exception e) {
                Map<String, String> errors = new HashMap<String, String>();
View Full Code Here

Examples of org.apache.cocoon.webapps.authentication.components.ApplicationHandler

            this.authLoadResource = handler.getLoadResource();
            this.authSaveResource = handler.getSaveResource();
            this.authLoadResourceParameters = handler.getLoadResourceParameters();
            this.authSaveResourceParameters = handler.getSaveResourceParameters();
            if (this.applicationName != null) {
                ApplicationHandler appHandler = (ApplicationHandler)handler.getApplications().get(this.applicationName);
                this.loadResource = appHandler.getLoadResource();
                this.saveResource = appHandler.getSaveResource();
                this.loadResourceParameters = appHandler.getLoadResourceParameters();
                this.saveResourceParameters = appHandler.getSaveResourceParameters();
            }

        } catch (ComponentException ce) {
            throw new ProcessingException("Unable to lookup the resource connector.", ce);
        } finally {
View Full Code Here

Examples of org.glassfish.jersey.server.ApplicationHandler

        config.register(new ServiceFinderBinder<TestContainerFactory>(TestContainerFactory.class));

        if (isLogRecordingEnabled()) {
            registerLogHandler();
        }
        this.application = new ApplicationHandler(config);
        this.tc = getContainer(application, getTestContainerFactory());
        if (isLogRecordingEnabled()) {
            loggedStartupRecords.addAll(loggedRuntimeRecords);
            loggedRuntimeRecords.clear();
            unregisterLogHandler();
View Full Code Here

Examples of org.glassfish.jersey.server.ApplicationHandler

        ResourceConfig config = getResourceConfig(configure());
        config.register(new ServiceFinderBinder<TestContainerFactory>(TestContainerFactory.class));
        if (isLogRecordingEnabled()) {
            registerLogHandler();
        }
        this.application = new ApplicationHandler(config);
        this.tc = getContainer(application, testContainerFactory);
        if (isLogRecordingEnabled()) {
            loggedStartupRecords.addAll(loggedRuntimeRecords);
            loggedRuntimeRecords.clear();
            unregisterLogHandler();
View Full Code Here

Examples of org.glassfish.jersey.server.ApplicationHandler

        ResourceConfig config = getResourceConfig(jaxrsApplication);
        config.register(new ServiceFinderBinder<TestContainerFactory>(TestContainerFactory.class));
        if (isLogRecordingEnabled()) {
            registerLogHandler();
        }
        this.application = new ApplicationHandler(config);
        this.tc = getContainer(application, getTestContainerFactory());
        if (isLogRecordingEnabled()) {
            loggedStartupRecords.addAll(loggedRuntimeRecords);
            loggedRuntimeRecords.clear();
            unregisterLogHandler();
View Full Code Here

Examples of org.glassfish.jersey.server.ApplicationHandler

        ResourceConfig config = ResourceConfig.forApplicationClass(jaxrsApplicationClass);
        config.register(new ServiceFinderBinder<TestContainerFactory>(TestContainerFactory.class));
        if (isLogRecordingEnabled()) {
            registerLogHandler();
        }
        this.application = new ApplicationHandler(config);
        this.tc = getContainer(application, getTestContainerFactory());
        if (isLogRecordingEnabled()) {
            loggedStartupRecords.addAll(loggedRuntimeRecords);
            loggedRuntimeRecords.clear();
            unregisterLogHandler();
View Full Code Here

Examples of org.glassfish.jersey.server.ApplicationHandler

     *
     * @return the application handler instance
     */
    @Override
    public ApplicationHandlerDelegate getApplicationHandler() {
        ApplicationHandler handler = new ApplicationHandler(getResourceConfig());
        return new DefaultApplicationHandlerDelegate(handler);
    }
View Full Code Here

Examples of org.glassfish.jersey.server.ApplicationHandler

        configure(resourceConfig);

        AbstractBinder webComponentBinder = new WebComponentBinder(resourceConfig.getProperties());
        resourceConfig.register(webComponentBinder);

        this.appHandler = new ApplicationHandler(resourceConfig, webComponentBinder);

        this.asyncExtensionDelegate = getAsyncExtensionDelegate();
        this.forwardOn404 = webConfig.getConfigType().equals(WebConfig.ConfigType.FilterConfig) &&
                resourceConfig.isProperty(ServletProperties.FILTER_FORWARD_ON_404);
        this.configSetStatusOverSendError = ServerProperties.getValue(resourceConfig.getProperties(),
View Full Code Here

Examples of org.glassfish.jersey.server.ApplicationHandler

     *
     * @return the application handler instance
     */
    @Override
    public ApplicationHandlerDelegate getApplicationHandler() {
        ApplicationHandler handler = new ApplicationHandler(getResourceConfig(), null, locator);
        return new DefaultApplicationHandlerDelegate(handler);
    }
View Full Code Here

Examples of org.glassfish.jersey.server.ApplicationHandler

        containerListener.onStartup(this);
        return this;
    }

    private void initJersey() {
        applicationHandler = new ApplicationHandler(resourceConfig, new YokeBinder());
        containerListener = ConfigHelper.getContainerLifecycleListener(applicationHandler);
    }
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.