Examples of createContainer()


Examples of org.apache.tiles.factory.AbstractTilesContainerFactory.createContainer()

            ((Initializable) acFactory).init(applicationContext.getInitParams());
        }
        applicationContext = acFactory.createApplicationContext(context);
        AbstractTilesContainerFactory factory = AbstractTilesContainerFactory
                .getTilesContainerFactory(applicationContext);
        return factory.createContainer(applicationContext);
    }

}
View Full Code Here

Examples of org.apache.tiles.factory.BasicTilesContainerFactory.createContainer()

        EasyMock.expect(context.getResource("/WEB-INF/tiles.xml"))
                .andReturn(resource);
        EasyMock.replay(context);
        AbstractTilesContainerFactory factory = new BasicTilesContainerFactory();
        container = (BasicTilesContainer) factory.createContainer(context);
    }

    /**
     * Tests basic Tiles container initialization.
     */
 
View Full Code Here

Examples of org.apache.tiles.factory.KeyedDefinitionsFactoryTilesContainerFactory.createContainer()

        EasyMock.expect(context.getInitParameterNames()).andReturn(v.elements()).anyTimes();
        EasyMock.replay(context);
        KeyedDefinitionsFactoryTilesContainerFactory factory =
            (KeyedDefinitionsFactoryTilesContainerFactory)
            TilesContainerFactory.getFactory(context, defaults);
        container = (KeyedDefinitionsFactoryTilesContainer) factory.createContainer(context);

        assertNotNull(container);
        assertNotNull(container.getDefinitionsFactory());
        assertNull(container.getProperDefinitionsFactory("one"));
        assertNull(container.getProperDefinitionsFactory("two"));
View Full Code Here

Examples of org.apache.tiles.factory.TilesContainerFactory.createContainer()

     */
    protected TilesContainer createContainer(ServletContext context)
        throws TilesException {
        TilesContainerFactory factory =
            TilesContainerFactory.getFactory(context);
        return factory.createContainer(context);
    }

}
View Full Code Here

Examples of org.codehaus.cargo.generic.ContainerFactory.createContainer()

         throw new BuildException("No specified file to deploy");
      }

      //
      ContainerFactory containerFactory = new DefaultContainerFactory();
      RemoteContainer container = (RemoteContainer)containerFactory.createContainer("jboss4x", ContainerType.REMOTE, cfg);

      //
      JBossJMXDeployer deployer = new JBossJMXDeployer(container);
      execute(deployer);
   }
View Full Code Here

Examples of org.codehaus.cargo.generic.DefaultContainerFactory.createContainer()

         throw new BuildException("No specified file to deploy");
      }

      //
      ContainerFactory containerFactory = new DefaultContainerFactory();
      RemoteContainer container = (RemoteContainer)containerFactory.createContainer("jboss4x", ContainerType.REMOTE, cfg);

      //
      JBossJMXDeployer deployer = new JBossJMXDeployer(container);
      execute(deployer);
   }
View Full Code Here

Examples of org.eclipse.core.filebuffers.manipulation.ContainerCreator.createContainer()

      } else {
        try {
          monitor.beginTask("Saving document", 2000);
          ContainerCreator creator = new ContainerCreator(file.getWorkspace(), file.getParent().getFullPath());
          creator.createContainer(new SubProgressMonitor(monitor, 1000));
          file.create(stream, false, new SubProgressMonitor(monitor, 1000));
        }
        finally {
          monitor.done();
        }
View Full Code Here

Examples of org.eclipse.core.filebuffers.manipulation.ContainerCreator.createContainer()

    }

    private IFolder createFolder(String portableFolderPath) throws CoreException {
        ContainerCreator creator = new ContainerCreator( ResourcesPlugin.getWorkspace(),
                                                         new Path( portableFolderPath ) );
        IContainer container = creator.createContainer( NULL_MONITOR );
        return (IFolder) container;
    }

    private void deleteProject(String projectName) throws CoreException {
        IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
View Full Code Here

Examples of org.eclipse.ecf.core.IContainerFactory.createContainer()

    final Object containerFactoryArguments = getContainerFactoryArguments(
        serviceReference, properties, containerTypeDescription);

    try {
      if (containerFactoryArguments instanceof String) {
        return containerFactory.createContainer(
            containerTypeDescription,
            (String) containerFactoryArguments);
      } else if (containerFactoryArguments instanceof ID) {
        return containerFactory.createContainer(
            containerTypeDescription,
View Full Code Here

Examples of org.eclipse.ecf.storage.IContainerEntry.createContainer()

    // Now retrieve from container store with given ID
    final IContainerEntry containerEntry = containerStore.retrieve(containerID);
    assertNotNull(containerEntry);

    final IContainer containera = containerEntry.createContainer();

    final ID containerIDa = containera.getID();
    assertNotNull(containerIDa);
    assertTrue(containerIDa.equals(containerID));
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.