Examples of buildContainer()


Examples of com.sun.ejb.containers.builder.BaseContainerBuilder.buildContainer()

                    container = new StatelessSessionContainer(ejbDescriptor, loader);
                } else {
                    //container = new StatefulSessionContainer(ejbDescriptor, loader);
        BaseContainerBuilder builder =
      new StatefulContainerBuilder();
        builder.buildContainer(ejbDescriptor, loader,
      dynamicConfigContext);
        container = builder.getContainer();
        //containers.put(ejbDescriptor.getUniqueId(), container);
        //builder.completeInitialization(sm);
                }
View Full Code Here

Examples of com.sun.ejb.containers.builder.StatefulContainerBuilder.buildContainer()

                    container = new StatelessSessionContainer(ejbDescriptor, loader);
                } else {
                    //container = new StatefulSessionContainer(ejbDescriptor, loader);
        BaseContainerBuilder builder =
      new StatefulContainerBuilder();
        builder.buildContainer(ejbDescriptor, loader,
      dynamicConfigContext);
        container = builder.getContainer();
        //containers.put(ejbDescriptor.getUniqueId(), container);
        //builder.completeInitialization(sm);
                }
View Full Code Here

Examples of com.sun.ejb.containers.builder.StatefulContainerBuilder.buildContainer()

                        container = new StatelessSessionContainer(ejbDescriptor, loader);
                    }
                } else if( sd.isStateful() ) {
                    StatefulContainerBuilder sfsbBuilder = habitat.getComponent(
                            StatefulContainerBuilder.class);
                    sfsbBuilder.buildContainer(dynamicConfigContext, ejbDescriptor, loader);
                    container = sfsbBuilder.getContainer();
                } else {

                    if (sd.hasContainerManagedConcurrency() ) {
                        container = new CMCSingletonContainer(ejbDescriptor, loader);
View Full Code Here

Examples of com.volantis.xml.sax.recorder.impl.attributes.AttributeContainerBuilder.buildContainer()

        int offset2 = builder.getOffset();
        builder.addAttributes(attributes);
        int offset3 = builder.getOffset();

        AttributesContainer container = builder.buildContainer();
        AttributesWindow window = container.createWindow();

        int index;

        // First search for attributes in the first set of attributes.
View Full Code Here

Examples of com.volantis.xml.sax.recorder.impl.attributes.AttributeContainerBuilderImpl.buildContainer()

        int offset2 = builder.getOffset();
        builder.addAttributes(attributes);
        int offset3 = builder.getOffset();

        AttributesContainer container = builder.buildContainer();
        AttributesWindow window = container.createWindow();

        int index;

        // First search for attributes in the first set of attributes.
View Full Code Here

Examples of org.nanocontainer.integrationkit.ContainerBuilder.buildContainer()

              + ".  Known extensions are: [groovy|bsh|js|py|xml]");
        }

        ScriptedContainerBuilderFactory scriptedContainerBuilderFactory = new ScriptedContainerBuilderFactory(scriptReader, builderClassName, applicationClassLoader);
        ContainerBuilder builder = scriptedContainerBuilderFactory.getContainerBuilder();
        builder.buildContainer(result, parentContainerRef, null, true);

        return result;
    }

    /**
 
View Full Code Here

Examples of org.nanocontainer.integrationkit.ContainerBuilder.buildContainer()

                containerBuilderClassName, parameters);
        ContainerBuilder containerBuilder = (ContainerBuilder) nano
                .getPico().getComponentInstance(containerBuilderClassName);
        ObjectReference parentRef = new SimpleReference();
        parentRef.set(parent);
        containerBuilder.buildContainer(new SimpleReference(), parentRef, null, false);
        return (ContainerPopulator) containerBuilder;
    }

    private Reader getResource(String resource){
        return new InputStreamReader(getClassLoader().getResourceAsStream(resource));     
View Full Code Here

Examples of org.nanocontainer.integrationkit.ContainerBuilder.buildContainer()

            ObjectReference builderRef = new ApplicationScopeObjectReference(context, BUILDER);
            builderRef.set(containerBuilder);

            ObjectReference containerRef = new ApplicationScopeObjectReference(context, APPLICATION_CONTAINER);
            containerBuilder.buildContainer(containerRef, new SimpleReference(), context, false);
        } catch (Exception e) {
            // Not all servlet containers print the nested exception. Do it here.
            event.getServletContext().log(e.getMessage(), e);
            throw new PicoCompositionException(e);
        }
View Full Code Here

Examples of org.nanocontainer.integrationkit.ContainerBuilder.buildContainer()

        HttpSession session = event.getSession();
        ServletContext context = session.getServletContext();
        ContainerBuilder containerBuilder = getBuilder(context);
        ObjectReference sessionContainerRef = new SessionScopeObjectReference(session, SESSION_CONTAINER);
        ObjectReference webappContainerRef = new ApplicationScopeObjectReference(context, APPLICATION_CONTAINER);
        containerBuilder.buildContainer(sessionContainerRef, webappContainerRef, session, false);

        session.setAttribute(KILLER_HELPER, new SessionContainerKillerHelper() {
            public void valueBound(HttpSessionBindingEvent bindingEvent) {
                HttpSession session = bindingEvent.getSession();
                containerRef = new SimpleReference();
View Full Code Here

Examples of org.nanocontainer.integrationkit.ContainerBuilder.buildContainer()

        Mock servletContextMock = mock(ServletContext.class);
        ServletContext context = (ServletContext)servletContextMock.proxy();
        ContainerBuilder containerBuilder = createContainerBuilder(script, containerBuilderClass);
       
        ObjectReference containerRef = new SimpleReference();
        containerBuilder.buildContainer(containerRef, new SimpleReference(), context, false);
        return (PicoContainer) containerRef.get();
    }

    private ContainerBuilder createContainerBuilder(String script, Class containerBuilderClass) throws ClassNotFoundException {
        ScriptedContainerBuilderFactory scriptedContainerBuilderFactory =
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.