Package org.apache.avalon.framework.component

Examples of org.apache.avalon.framework.component.WrapperComponentManager


        if (wk != null) {
        appleContext.put("continuation-id", wk.getId());
        }
       
        LifecycleHelper.setupComponent( app, getLogger(), appleContext,
                                        this.serviceManager, new WrapperComponentManager(this.serviceManager)
                                        null, null, true);
       
        processApple(params, redirector, app, wk);
    }
View Full Code Here


        } catch (ServiceException e) {
            throw new JobExecutionException(e);
        }

        m_key = CocoonComponentManager.startProcessing(m_env);
        CocoonComponentManager.enterEnvironment(m_env, new WrapperComponentManager(m_manager), m_processor);
    }
View Full Code Here

     */
    public ComponentManager createComponentManager( final Object entry )
        throws Exception
    {
        final ServiceManager serviceManager = createServiceManager( entry );
        return new WrapperComponentManager( serviceManager );
    }
View Full Code Here

        appleContext.put("continuation-id", wk.getId());

        getLogger().debug("Pulling fresh apple through the lifecycle... | continuationid=" + wk.getId());
       
        LifecycleHelper.setupComponent( app, getLogger(), appleContext,
                                        this.serviceManager, new WrapperComponentManager(this.serviceManager)
                                        null, null, true);
       
        processApple(params, redirector, app, wk);
    }
View Full Code Here

  public BackgroundEnvironment(Logger logger, Context ctx, ServiceManager manager) throws MalformedURLException {
    super("", null, new File(ctx.getRealPath("/")), null);
   
    this.enableLogging(logger);
   
    this.manager = new WrapperComponentManager(manager);
   
    this.outputStream = new NullOutputStream();   
    
    // TODO Would special Background*-objects have advantages?
    Request request = new CommandLineRequest(
View Full Code Here

        LifecycleHelper.setupComponent(
             unwrap(obj),
             this.getLogger(),
             this.getAvalonContext(),
             this.getServiceManager(),
             new WrapperComponentManager(this.getServiceManager()),
             null,// roleManager
             null,// configuration
             true);
         return obj;
    }
View Full Code Here

        LifecycleHelper.setupComponent(
             unwrap(obj),
             this.getLogger(),
             this.getAvalonContext(),
             this.getServiceManager(),
             new WrapperComponentManager(this.getServiceManager()),
             null,// roleManager
             null,// configuration
             true);
         return obj;
    }
View Full Code Here

                    if (getLogger().isDebugEnabled()) {
                        getLogger().debug("Thread #" + thread + " loading <" + element.source + ">");
                    }

                    // Setup this thread's environment
                    CocoonComponentManager.enterEnvironment(environment, new WrapperComponentManager(manager), processor);
                    try {
                        element.process(this);

                    } catch (SAXException e) {
                        this.e = e;
View Full Code Here

        LifecycleHelper.setupComponent(
             unwrap(obj),
             this.getLogger(),
             this.getAvalonContext(),
             this.getServiceManager(),
             new WrapperComponentManager(this.getServiceManager()),
             null,// roleManager
             null,// configuration
             true);
         return obj;
    }
View Full Code Here

                } catch (ServiceException e) {
                    throw new CascadingRuntimeException("No processor found", e);
                }

                final Object key = CocoonComponentManager.startProcessing(env);
                CocoonComponentManager.enterEnvironment(env, new WrapperComponentManager(manager), processor);
                try {
                    // Refresh Source
                    Source source = null;
                    try {
                        source = resolver.resolveURI(uri);
View Full Code Here

TOP

Related Classes of org.apache.avalon.framework.component.WrapperComponentManager

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.