Package com.volantis.mcs.application

Examples of com.volantis.mcs.application.ApplicationRegistry


            // Get the application name for this request.
            String applicationName = request.getApplicationName();

            // initialisation.
            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(
View Full Code Here


            String applicationName = requestHeaders.getHeader(
                    "Mariner-Application");

            // Get the application Registry to enable application specific
            // initialisation.
            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(
View Full Code Here

        servletContext = context;

        try {

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

            ar.registerApplication(
                    ApplicationRegistry.DEFAULT_APPLICATION_NAME, arc);
            if(logger.isDebugEnabled()){
                logger.debug("Registered default application");
            }
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);

        servletContext = new ServletContextStub();
        volantis = new TestableVolantis() {
            // Javadoc inherited.
View Full Code Here

TOP

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

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.