Package org.apache.avalon.framework.component

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


        final InvokeContext context = new InvokeContext();
        final Logger contextLogger = getLogger().getChildLogger("ctx");

        ContainerUtil.enableLogging(context, contextLogger);
        ContainerUtil.compose(context, new WrapperComponentManager(m_manager));
        ContainerUtil.service(context, m_manager);

        final Map anchorMap = new HashMap(2);
        anchorMap.put(HINT_KEY,hint);
        context.pushMap(ANCHOR_NAME,anchorMap);
View Full Code Here


        final InvokeContext context = new InvokeContext();
        final Logger contextLogger = getLogger().getChildLogger("ctx");

        ContainerUtil.enableLogging(context, contextLogger);
        ContainerUtil.compose(context, new WrapperComponentManager(m_manager));
        ContainerUtil.service(context, m_manager);

        final Map anchorMap = new HashMap(2);
        anchorMap.put(HINT_KEY,hint);
        context.pushMap(ANCHOR_NAME,anchorMap);
View Full Code Here

        // get the base attribute
        String base = configuration.getAttribute("base", null);
        if (base != null) {
            try {
                m_baseLocation = VariableResolverFactory.getResolver(base, new WrapperComponentManager(super.m_manager));
            } catch (PatternException e) {
                final String message = "Illegal pattern syntax for locator attribute 'base'" +
                    " at " + configuration.getLocation();
                throw new ConfigurationException(message);
            }
View Full Code Here

        for (int i = 0; i < children.length; i++) {
            final String name = children[i].getAttribute("name");
            final String value = children[i].getAttribute("value");
            try {
                parameters.put(
                    VariableResolverFactory.getResolver(name, new WrapperComponentManager(m_manager)),
                    VariableResolverFactory.getResolver(value, new WrapperComponentManager(m_manager)));
            } catch(PatternException pe) {
                String msg = "Invalid pattern '" + value + "' at "
                    + children[i].getLocation();
                throw new ConfigurationException(msg, pe);
            }
View Full Code Here

    public void build(final Configuration configuration) throws ConfigurationException {
        try {
            m_src = VariableResolverFactory.getResolver(
                configuration.getAttribute("src"),
          new WrapperComponentManager(super.m_manager));
        } catch (PatternException e) {
            final String message = "Illegal pattern syntax at for location attribute 'src'" +
                " at " + configuration.getLocation();
            throw new ConfigurationException(message,e);
        }
View Full Code Here

    {
        final ConnectionHandler handler = newHandler();
        ContainerUtil.enableLogging( handler, getLogger() );
        ContainerUtil.contextualize( handler, m_context );
        ContainerUtil.service( handler, m_serviceManager );
        ContainerUtil.compose( handler, new WrapperComponentManager( m_serviceManager ) );
        ContainerUtil.configure( handler, m_configuration );
        ContainerUtil.initialize( handler );

        return handler;
    }
View Full Code Here

            m_threadPool = m_threadManager.getThreadPool( getThreadPoolName() );
        }
        ContainerUtil.service( m_factory, serviceManager );
        try
        {
            ContainerUtil.compose( m_factory, new WrapperComponentManager( serviceManager ) );
        }
        catch( final ComponentException ce )
        {
            throw new ServiceException( ConnectionHandlerFactory.class.getName(), ce.getMessage(), ce );
        }
View Full Code Here

     */
    protected void serviceComponent(Object component) throws Exception
    {
        if ( component instanceof Composable )
        {
            ContainerUtil.compose( component, new WrapperComponentManager( m_serviceManager ) );
        }
        ContainerUtil.service( component, m_serviceManager );

        if ( m_useDynamicCreation )
        {
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 (ContextException e) {
            throw new CascadingRuntimeException("Cannot get sitemap service manager", e);
        }
       
        LifecycleHelper.setupComponent( app, getLogger(), appleContext,
                                        sitemapManager, new WrapperComponentManager(sitemapManager)
                                        null, null, true);
       
        processApple(params, redirector, app, wk);
    }
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.