Package com.volantis.mcs.application

Examples of com.volantis.mcs.application.ApplicationRegistryContainer


     */
    protected MessageRequestor() {
        // Register the MPS application with Mariner so that
        // we can make requests.

        ApplicationRegistryContainer arc;
        arc = applicationRegistry.getApplicationRegistryContainer(
                            ApplicationRegistry.DEFAULT_APPLICATION_NAME );

        DefaultApplicationContextFactory dfac =
                (DefaultApplicationContextFactory)
                arc.getInternalApplicationContextFactory();

        arc = new ApplicationRegistryContainer(
                                new MPSInternalApplicationContextFactory(),
                                new MPSServletApplicationContextFactory() );

        applicationRegistry.registerApplication( "mps", arc );

View Full Code Here


            ApplicationContextFactory servletContextFactory = new ServletPrerendererApplicationContextFactory();
            ApplicationContextFactory internalContextFactory = null;

            // Create registry container with servlet and internal context
            // factories.
            ApplicationRegistryContainer registryContainer = new ApplicationRegistryContainer();
            registryContainer
                    .setInternalApplicationContextFactory(internalContextFactory);
            registryContainer
                    .setServletApplicationContextFactory(servletContextFactory);

            // Register application.
            ApplicationRegistry.getSingleton().registerApplication("prerenderer",
                    registryContainer);
View Full Code Here

            ApplicationRegistry applicationRegistry =
                    ApplicationRegistry.getSingleton();

            // Get the factory method to enable the application context
            // to be initialised.
            ApplicationRegistryContainer applicationRegistryContainer =
                    applicationRegistry.getApplicationRegistryContainer(
                            applicationName);

            // We did not match our appication so we are either mariner
            // or an unknown application, either way we will use the
            // default application behaviour.
            if (applicationRegistryContainer == null) {
                applicationRegistryContainer =
                        applicationRegistry.getApplicationRegistryContainer(
                                applicationRegistry.DEFAULT_APPLICATION_NAME);

                // Still cannot find anything, give in.
                if (applicationRegistryContainer == null) {
                    throw new IllegalStateException(
                            "No application registered");
                }
            }

            MarinerURL requestURL =
                    volantisBean.getClientAccessibleURL(
                            new MarinerURL("internalRequest"));

            ApplicationContext appContext;
            ApplicationContextFactory acf =
                    applicationRegistryContainer
                    .getInternalApplicationContextFactory();


            // Save away a reference to the enclosing MarinerRequestContext
            // if any.
View Full Code Here

            ApplicationRegistry applicationRegistry =
                    ApplicationRegistry.getSingleton();

            // Get the factory method to enable the application context
            // to be initialised.
            ApplicationRegistryContainer applicationRegistryContainer =
                    applicationRegistry.getApplicationRegistryContainer(
                            applicationName);

            // We did not match our appication so we are either mariner
            // or an unknown application, either way we will use the
            // default application behaviour.
            if (applicationRegistryContainer == null) {
                applicationRegistryContainer =
                        applicationRegistry.getApplicationRegistryContainer(
                                ApplicationRegistry.DEFAULT_APPLICATION_NAME);

                // Still cannot find anything, give in.
                if (applicationRegistryContainer == null) {
                    throw new IllegalStateException(
                            "No application registered");
                }
            }

            MarinerURL requestURL = createRequestURL(request);
            requestURL = volantisBean.getClientAccessibleURL(requestURL);

            ApplicationContext appContext;
            ApplicationContextFactory acf =
                    applicationRegistryContainer.getServletApplicationContextFactory();


            // Save away a reference to the enclosing MarinerRequestContext
            // if any.
            enclosingRequestContext = getCurrent(request);
View Full Code Here

        try {

            // Register the default application.
            ApplicationRegistry ar = ApplicationRegistry.getSingleton();
            ApplicationRegistryContainer arc =
                    new ApplicationRegistryContainer(
                            new DefaultInternalApplicationContextFactory(),
                            new DefaultServletApplicationContextFactory());

            ar.registerApplication(
                    ApplicationRegistry.DEFAULT_APPLICATION_NAME, arc);
View Full Code Here

    // javadoc inherited
    protected void setUp() throws Exception {
        super.setUp();
        // Register the default application.
        ApplicationRegistry ar = ApplicationRegistry.getSingleton();
        ApplicationRegistryContainer arc =
                new ApplicationRegistryContainer(
                        new DefaultInternalApplicationContextFactory(),
                        new DefaultServletApplicationContextFactory());

        ar.registerApplication(
                ApplicationRegistry.DEFAULT_APPLICATION_NAME, arc);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.application.ApplicationRegistryContainer

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.