Package org.apache.avalon.framework.component

Examples of org.apache.avalon.framework.component.ComponentManager.lookup()


                    ComponentSelector selector = null;
                    Serializer serializer = null;
                    ByteArrayOutputStream oStream = new ByteArrayOutputStream();
                    try {
                        selector = (ComponentSelector)manager.lookup(Serializer.ROLE + "Selector");
                        serializer = (Serializer)selector.select(serializerName);
                        serializer.setOutputStream(oStream);
                        serializer.startDocument();
                        DOMStreamer streamer = new DOMStreamer(serializer);
                        streamer.stream(frag);
View Full Code Here


            (ComponentManager) msgContext.getProperty(COMPONENT_MANAGER);

        if (manager == null)
            throw new AxisFault("Could not access Avalon ComponentManager");

        return decorate(manager.lookup(role), manager);
    }

    /**
     * Helper method for decorating a <code>Component</code> with a Handler
     * proxy (see below).
View Full Code Here

                  ComponentSelector selector = null;
                  Serializer serializer = null;
                  OutputStream oStream = null;
                  try {
                       selector = (ComponentSelector)manager.lookup(Serializer.ROLE + "Selector");
                       serializer = (Serializer)selector.select(serializerName);
                       oStream = ws.getOutputStream();
                       serializer.setOutputStream(oStream);
                         serializer.startDocument();
                       DOMStreamer streamer = new DOMStreamer(serializer);
View Full Code Here

                   
                    ComponentSelector selector = null;
                    Serializer serializer = null;
                    ByteArrayOutputStream oStream = new ByteArrayOutputStream();
                    try {
                        selector = (ComponentSelector)manager.lookup(Serializer.ROLE + "Selector");
                        serializer = (Serializer)selector.select(serializerName);
                        serializer.setOutputStream(oStream);
                        serializer.startDocument();
                        DOMStreamer streamer = new DOMStreamer(serializer);
                        streamer.stream(frag);
View Full Code Here

        SessionContext context = null;

        ComponentManager manager = CocoonComponentManager.getSitemapComponentManager();
        ContextManager contextManager = null;
        try {
            contextManager = (ContextManager)manager.lookup(ContextManager.ROLE);
            // create new context
            context = contextManager.createContext(name, loadURI, saveURI);
            if ( this.applicationContexts == null) {
                this.applicationContexts = new ArrayList(3);
            }
View Full Code Here

            Session session = req.getSession(false);
            if (session != null) {

                PortalManager portal = null;
                try {
                    portal = (PortalManager)manager.lookup(PortalManager.ROLE);
                    // is this an external resource which wants access to a coplet?
                    String value = req.getParameter("portalcontext");
                    if (value != null) {
                        int sepOne, sepTwo;
                        sepOne = value.indexOf('_');
View Full Code Here

        if ( this.applicationContexts != null ) {
            ContextManager contextManager = null;

            try {
                contextManager = (ContextManager)manager.lookup(ContextManager.ROLE);

                Iterator i = this.applicationContexts.iterator();
                while ( i.hasNext() ) {
                    final String current = (String)i.next();
                    contextManager.deleteContext( current );
View Full Code Here

                  ComponentSelector selector = null;
                  Serializer serializer = null;
                  OutputStream oStream = null;
                  try {
                       selector = (ComponentSelector)manager.lookup(Serializer.ROLE + "Selector");
                       serializer = (Serializer)selector.select(serializerName);
                       oStream = ws.getOutputStream();
                       serializer.setOutputStream(oStream);
                         serializer.startDocument();
                       DOMStreamer streamer = new DOMStreamer(serializer);
View Full Code Here

                   
                    ComponentSelector selector = null;
                    Serializer serializer = null;
                    ByteArrayOutputStream oStream = new ByteArrayOutputStream();
                    try {
                        selector = (ComponentSelector)manager.lookup(Serializer.ROLE + "Selector");
                        serializer = (Serializer)selector.select(serializerName);
                        serializer.setOutputStream(oStream);
                        serializer.startDocument();
                        DOMStreamer streamer = new DOMStreamer(serializer);
                        streamer.stream(frag);
View Full Code Here

            throws Exception {
        JSCocoon cocoon = (JSCocoon) args[0];
        ComponentManager manager = cocoon.getComponentManager();

        ContinuationsManager contMgr
                = (ContinuationsManager) manager.lookup(ContinuationsManager.ROLE);

        Object kont = args[1];
        JSWebContinuation pjswk = (JSWebContinuation) args[2];
        WebContinuation pwk = (pjswk == null ? null : pjswk.wk);
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.