Examples of Volantis


Examples of com.volantis.mcs.runtime.Volantis

    /**
     * initialise Volantis by setting the RenderedPageCacheManager to a method
     * which clears the renderedPageCache
     */
    protected void initVolantis() {
        Volantis volantis = ApplicationInternals.getVolantisBean(application);
        // allow the cache to be flushed from the volantis bean.
        volantis.setRenderedPageCacheManager(new CacheManager() {
            public void flushCache() {
                renderedPageCache.clear();
            }
        });
    }
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

        ContextInternals.setEnvironmentContext(requestContext, envContext);

        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        ContextInternals.setApplicationContext(requestContext, appContext);

        final Volantis volantis = new TestableVolantis() {
            public MarinerPageContext createMarinerPageContext() {
                return new TestMarinerPageContext();
            }

            public PluggableAssetTranscoder getAssetTranscoder() {
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

    // NOTE: DISABLED BECAUSE NOT USED AND CAUSED BACKGOUND THREADS
    protected void NOsetUp() throws Exception {
        super.setUp();

        volantis = new Volantis();
        servletContext = new ServletContextStub();
        AppManager mgr = new AppManager(volantis, servletContext);
        mgr.setAppConf(new DefaultAppConfigurator() {
            public void setUp(ConfigValue config) throws Exception {
                // Set up default values...
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

     */
    private static final int MAX_TIME_TO_WAIT_IN_SECONDS = 30;

    public void testStopAgentWhenInBlockingState() throws Exception {

        Volantis volantis = new Volantis();

        MarinerAgent agent = new MarinerAgent(PASSWORD, null,
                ANY_FREE_PORT, volantis);

        boolean shouldRunTest = true;
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

    public ApplicationContext createApplicationContext(
            MarinerRequestContext requestContext)
            throws RepositoryException {
       
        // Get the Volantis bean.
        Volantis volantisBean = Volantis.getInstance();
        if (volantisBean == null) {
            throw new IllegalStateException
                    ("Volantis bean has not been initialised");
        }
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

    public void notestSupportsNestedTables() throws Exception {
        privateSetUp();

        ProtocolsConfiguration config = new ProtocolsConfiguration();
        config.setWmlPreferredOutputFormat("wmlc");
        Volantis bean = new Volantis();
        bean.setProtocolsConfiguration(config);
        pageContext.setVolantis(bean);

        DefaultDevice device = new DefaultDevice("TestDevice", null, null);
        device.setPolicyValue("ssversion", null);
        pageContext.setDevice(
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

   * @return A connection to the Mariner repository.
   * @deprecated Use {@link com.volantis.mcs.project.PolicyBuilderManager}
   */
  public RepositoryConnection getPageConnection() {
      if (pageConnection == null) {
          Volantis volantis = pageContext.getVolantisBean();
          InternalProject project = volantis.getDefaultProject();
          LocalPolicySource source = (LocalPolicySource) project.getPolicySource();
          LocalRepository repository = source.getRepository();
          try {
              pageConnection = repository.connect();
          } catch (RepositoryException e) {
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

                throws RepositoryException {

        ApplicationContext applicationContext = null;

        // Get the Volantis bean.
        Volantis volantisBean = Volantis.getInstance();
        if (volantisBean == null) {
            throw new IllegalStateException
                    ("Volantis bean has not been initialised");
        }
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

                new RuntimeProjectMock("projectMock", expectations);
        requestContextMock.expects.getEnvironmentContext()
                .returns(environmentContextMock).any();

        context.initialisePage(
            new Volantis() {
                public CompiledStyleSheet getDefaultStyleSheet() {
                    return new CompiledStyleSheetMock(
                            "CompiledStyleSheetMock", expectations);
                }
View Full Code Here

Examples of com.volantis.mcs.runtime.Volantis

        public MarkupPluginContainer getContainer(
                MarinerRequestContext requestContext) {

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

            return container;
        }
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.