Examples of Container


Examples of org.gatein.api.composition.Container

            // for each application or container on the top-level container, convert it into a ModelObject and add
            // to the list of children to return
            for (ContainerItem containerItem : containerChildren) {

                if (containerItem instanceof Container) {
                    Container containerItemContainer = (Container) containerItem;
                    // it's a container, so, we might have yet another level of children to convert
                    // also, we need information about which type of container it is, and this is expressed by the
                    // template property, as there's pretty much no difference between a column container and a row
                    // container at the storage level
                    org.exoplatform.portal.config.model.Container child = new org.exoplatform.portal.config.model.Container();
                    child.setTemplate(containerItemContainer.getTemplate());
                    child.setAccessPermissions(Util.from(containerItemContainer.getAccessPermission()));
                    child.setMoveAppsPermissions(Util.from(containerItemContainer.getMoveAppsPermission()));
                    child.setMoveContainersPermissions(Util.from(containerItemContainer.getMoveContainersPermission()));

                    // recursive call, to convert all the children into model objects for this container
                    child.setChildren(getModelObjectsFor(containerItemContainer));

                    // and finally, add to the list of children
View Full Code Here

Examples of org.gephi.io.importer.api.Container

        database.setPasswd("");
        database.setNodeQuery("SELECT * FROM node LIMIT 0,1000");
        database.setEdgeQuery("SELECT * FROM edge WHERE id_node_from < 1000 AND id_node_to < 1000");
        database.setSQLDriver(new MySQLDriver());

        Container cont = Lookup.getDefault().lookup(Container.class);
        containerLoader = cont.getLoader();
        containerUnloader = cont.getUnloader();
    }
View Full Code Here

Examples of org.glassfish.api.admin.config.Container

        }
        for (DomainInitializer inhabitant : habitat.<DomainInitializer>getAllServices(
                DomainInitializer.class)) {
            logger.info(strings.get("InvokeInitializer",
                    inhabitant.getClass()));
            Container newContainerConfig = inhabitant.getInitialConfig(ctx);
            try {
                ConfigSupport.apply((new ConfigCode() {
                    @Override
                    @SuppressWarnings("unchecked")
                    public Object run(ConfigBeanProxy... objects) throws PropertyVetoException, TransactionFailure {
View Full Code Here

Examples of org.glassfish.api.container.Container

    }

    protected boolean startContainers(Collection<EngineInfo> containersInfo, Logger logger, DeploymentContext context) {
        ActionReport report = context.getActionReport();
        for (EngineInfo engineInfo : containersInfo) {
            Container container;
            try {
                container = engineInfo.getContainer();
            } catch(Exception e) {
                logger.log(Level.SEVERE, "Cannot start container  " +  engineInfo.getSniffer().getModuleType(),e);
                return false;
            }
            Class<? extends Deployer> deployerClass = container.getDeployer();
            Deployer deployer;
            try {
                    deployer = habitat.getComponent(deployerClass);
                    engineInfo.setDeployer(deployer);
            } catch (ComponentException e) {
View Full Code Here

Examples of org.groovymud.object.Container

  protected File createFile(String username) {
    return new File(mudSpacePlayerLocation + username + ".xml");
  }

  public void movePlayerToLocation(Player player) throws InstantiationException, FileNotFoundException, CompilationFailedException {
    Container room;
    logger.info("moving player to location.");
    ObjectLocation location = player.getContainerLocation();

    room = (Container) getObjectRegistry().getMudObject(location.getBeanId());
    if (room == null) {
      logger.info("loading container");
      room = (Container) load(location);
    }
    if (room == null) {
      throw new InstantiationException("container was null!");
    }
    logger.info("adding player to container");
    room.addMudObject(player);
  }
View Full Code Here

Examples of org.huihoo.willow.Container

    Digester workflowDigester = DigesterFactory.newDigester(xmlValidation, xmlNamespaceAware, null);
    return workflowDigester;
  }
  private String getEngineBase()
  {
    Container engineC = context.getParent();
    if (engineC instanceof StandardEngine)
    {
      return ((StandardEngine) engineC).getEngineBase();
    }
    return System.getProperty(Globals.PROPS_WILLOW_HOME);
View Full Code Here

Examples of org.jboss.arquillian.container.spi.Container

     * @return
     * @throws IllegalArgumentException If no ResourceProvider found for Type
     * @throws RuntimeException         If ResourceProvider return null
     */
    private Object lookup(Class<?> type, ContainerResource resource, Annotation... qualifiers) {
        final Container container;
        final List<Container> containers = containerRegistry.get().getContainers();
        if (resource.value().isEmpty()) {
            if (containers.size() > 1) {
                throw new RuntimeException("@ContainerResource did not specify a server and more than one server exists in the deployment");
            }
            container = containers.get(0);
        } else {
            container = containerRegistry.get().getContainer(resource.value());
            if (container == null) {
                throw new RuntimeException("@ContainerResource specified non existent server " + resource.value());
            }
        }
        try {
            containerContext.get().activate(container.getName());
            if (Context.class.isAssignableFrom(type)) {
                return lookupContext(type, resource, qualifiers);
            } else if (ManagementClient.class.isAssignableFrom(type)) {
                return managementClient.get();
            } else {
View Full Code Here

Examples of org.jboss.arquillian.impl.domain.Container

         {
            continue; // nothing to do, move on
         }
        
         // Container should exists, handled by up front validation
         Container container = containerRegistry.getContainer(target);
        
         for(DeploymentDescription deployment : startUpDeployments)
         {
            operation.perform(container, deployment);
         }
View Full Code Here

Examples of org.jboss.ejb.Container

         //
         Collection containers = ejbModule.getContainers ();
         Iterator containersIter = containers.iterator ();
         while (containersIter.hasNext ())
         {
            Container otherContainer = (Container)containersIter.next ();
            CleanShutdownInterceptor inter = (CleanShutdownInterceptor)
               ejbModule.getModuleData ("CleanShutDownInterceptor-" + otherContainer.getServiceName ().toString ());
            if (inter == null)
            {
               log.debug ("Found an EJB that doesnt have a clean-shutdown interceptor: " + otherContainer.getJmxName ());
            }
            else
            {
               inter.onlyAllowLocalInvocations ();
            }
View Full Code Here

Examples of org.jboss.ejb3.Container

      {
         try
         {

            String guid = (String) statefulGuidField.get(ejbContext);
            Container container = Ejb3Registry.getContainer(guid);
            return container.getEjbName();
         }
         catch (IllegalArgumentException e)
         {
            throw new RuntimeException(e);
         }
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.