Package com.volantis.mcs.application

Examples of com.volantis.mcs.application.MarinerApplication


        // extract the mariner request context from the expression context
        MarinerRequestContext context =
                (MarinerRequestContext) expressionContext.getProperty(
                        MarinerRequestContext.class);
        MarinerApplication application = context.getMarinerApplication();

        // retrieve the project name
        String projectName = values[0].stringValue().asJavaString();

        // retrieve the asset name
        String componentName = values[1].stringValue().asJavaString();

        Project project = application.getPredefinedProject(projectName);

        if (project == null) {
            throw new ExpressionException(
                    exceptionLocalizer.format("mcsi-policy-project-not-defined",
                                              projectName));
View Full Code Here


        final PolicyReferenceResolverMock referenceResolverMock =
                new PolicyReferenceResolverMock("referenceResolverMock",
                        expectations);
        referenceResolverMock.expects.
                resolveQuotedTextExpression(fragmentName).returns(null);
        MarinerApplication application = new MarinerServletApplication();
        MarinerConfiguration config = new MarinerConfiguration();
        Volantis volantis = getVolantis();
        PrivateAccessor.setField(volantis, "marinerConfig", config);
        PrivateAccessor.invoke(volantis, "initializeURLRewriters",
                new Class [] {MarinerApplication.class},
View Full Code Here

        // javadoc inherited from interface.
        public void execute(AppContext context) throws Exception {
            // Set up the contexts

            // Connect application to volantis bean.
            MarinerApplication application = new MarinerApplication() {};
            ApplicationInternals.setVolantisBean(application, volantis);

            // Connect request to application.
            TestMarinerRequestContext requestContext =
                    new TestMarinerRequestContext();
View Full Code Here

    /**
     * Check the configuration of markup plugins.
     */
    private void checkMCSPlugins() {
        MarinerApplication application = new MarinerApplication(){};
        ApplicationInternals.setVolantisBean(application, volantis);     
        MarinerRequestContext context = new TestMarinerRequestContext();
        ContextInternals.setMarinerApplication(context, application);
        for (int pluginCount=0; pluginCount < 6; pluginCount++) {
            MarkupPluginManager manager = volantis.getMarkupPluginManager();
View Full Code Here

     * Get the initialized Volantis bean.
     * @return the initialized Volantis.
     */
    protected synchronized Volantis getVolantisBean() {
        try {
            MarinerApplication application =
                    MarinerServletApplication.getInstance(getServletContext());
            return ApplicationInternals.getVolantisBean(application);
        } catch (ServletException e) {
            throw new UndeclaredThrowableException(e);
        }
View Full Code Here

        MarkupPluginMethod method = MarkupPluginMethod.literal(methodName);
        if (MarkupPluginMethod.INITIALIZE == method) {
            // Get the MarinerApplication to pass to the plugin initialise
            // method.
            MarinerApplication application
                    = context.getMarinerApplication();
            if (arguments == null) {
                arguments = new HashMap();
            }
            arguments.put(IntegrationPlugin.APPLICATION, application);
View Full Code Here

         * Get the application level container.
         */
        public MarkupPluginContainer getContainer(
                MarinerRequestContext requestContext) {

            MarinerApplication application
                    = requestContext.getMarinerApplication();
            Volantis volantis
                    = ApplicationInternals.getVolantisBean(application);
            MarkupPluginContainer container
                    = volantis.getMarkupPluginContainer();
View Full Code Here

        ac.setName(argName);
        ac.setValue(argValue);

        config.addArgument(ac);

        MarinerApplication application = null;
        MarkupPluginFactoryImpl factory
                = new MarkupPluginFactoryImpl(config, application);

        assertEquals("Unexpected name.", pluginName, factory.getName());
View Full Code Here

        ac.setName(argName);
        ac.setValue(argValue);

        config.addArgument(ac);

        MarinerApplication application = null;
        MarkupPluginFactoryImpl factory
                = new MarkupPluginFactoryImpl(config, application);

        IntegrationPlugin plugin = factory.createPluginInstance();
View Full Code Here

TOP

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

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.