Examples of addComponent()


Examples of org.jboss.managed.plugins.ManagedDeploymentImpl.addComponent()

      assertNotNull(q1MO);

      ComponentType type = new ComponentType("JMSDestination", "queue");
      RunStateMapper stateMapper = null;
      ManagedComponentImpl mc = new ManagedComponentImpl(type, md, q1MO, stateMapper);
      md.addComponent(q1MO.getName(), mc);

      RunState state = mc.getRunState();
      assertEquals(RunState.RUNNING, state);
   }
}
View Full Code Here

Examples of org.jboss.system.server.profileservice.persistence.component.ComponentMapper.addComponent()

   public PersistenceRoot addComponent(PersistenceRoot root, ManagedObject parent, ManagedComponent component)
   {
      if(root == null)
         throw new IllegalArgumentException("null persistence root");
      ComponentMapper mapper = getComponentMapper(parent);
      PersistedComponent persistedComponent = mapper.addComponent(parent.getAttachment(), component);
      return addPersistedComponent(root, persistedComponent);
   }

   /**
    * Remove a ManagedComponent.
View Full Code Here

Examples of org.jdesktop.mtgame.Entity.addComponent()

                    if (thisEntity==null) {
                        logger.severe("Got null entity for "+this.getClass().getName());
                        return;
                    }

                    thisEntity.addComponent(CellRefComponent.class, new CellRefComponent(cell));

                    if (parentEntity!=null) {
                        parentEntity.addEntity(thisEntity);
                    } else {
                        ClientContextJME.getWorldManager().addEntity(thisEntity);
View Full Code Here

Examples of org.jdesktop.wonderland.client.cell.Cell.addComponent()

        // translate component if it is not already on there. Also, set its
        // size.
        if (visible == true) {
            if (component == null) {
                component = new TranslateAffordanceCellComponent(cell);
                cell.addComponent(component);
            }
            ((AffordanceCellComponent) component).setSize(getSliderSize());
        }
        else {
            // Otherwise if the remove exists, then remove it from the Cell
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD.addComponent()

                fpsComponent = mainHUD.createComponent(chart);
                fpsComponent.setDecoratable(false);
                fpsComponent.setPreferredLocation(Layout.SOUTHEAST);

                // add HUD control panel to HUD
                mainHUD.addComponent(fpsComponent);

                removeFrameRateListener(frameRateListener);
                frameRateListener = addFrameRateListener(desiredFrameRate);
            }
        } else {
View Full Code Here

Examples of org.jdesktop.wonderland.modules.orb.server.cell.Orb.addComponent()

      return;
  }

  orb = new Orb(vp, center, .1, vp.realPlayer.getId(), new String[0]);

  orb.addComponent(new AudioParticipantComponentMO(orb.getOrbCellMO()));

  orbMap.put(vp.getId(), AppContext.getDataManager().createReference(orb));

  logger.warning("virtualPlayerAdded:  " + vp + " Center " + center);
    }
View Full Code Here

Examples of org.jdesktop.wonderland.server.cell.CellMO.addComponent()

  }

  CellMO cellMO = CellManagerMO.getCellManager().getCell(info.getCellID());

        if (cellMO.getComponent(ProximityComponentMO.class) == null) {
            cellMO.addComponent(new ProximityComponentMO(cellMO));
        }

  ProximityComponentMO component = cellMO.getComponent(ProximityComponentMO.class);

        BoundingVolume[] bounds = new BoundingVolume[1];
View Full Code Here

Examples of org.jvnet.hk2.component.Habitat.addComponent()

                long now = System.currentTimeMillis();
                URL url = getClass().getClassLoader().getResource(fileName + ".xml");
                if (url != null) {
                    try {
                        DomDocument document = parser.parse(url,  test.getDocument(habitat));
                        habitat.addComponent("document", document);
                    } catch(Exception e) {
                        e.printStackTrace();
                    }
                    Logger.getAnonymousLogger().fine("time to parse domain.xml : " + String.valueOf(System.currentTimeMillis() - now));
                }
View Full Code Here

Examples of org.mule.registry.Library.addComponent()

      String libName = libs[i].getDomNode().getFirstChild().getNodeValue();
      Library library = getRegistry().getLibrary(libName);
      if (library == null) {
        throw new RegistryException("Component requires a missing shared library: " + libName);
      }
      library.addComponent(this);
    }

        // Get class path elements
    this.classPathElements = Arrays.asList(jbi.getComponent().getComponentClassPath().getPathElementArray());
    // Class loader delegation
View Full Code Here

Examples of org.olat.core.gui.control.generic.tool.ToolController.addComponent()

    myTool.addHeader(translate("header.tools.general"));
    if (cc.isCalendarEnabled()) {
      myTool.addPopUpLink(ACTION_CALENDAR, translate("command.calendar"), null, null, "950", "750", false);
    }
    if (cc.hasGlossary()) {
      myTool.addComponent(glossaryToolCtr.getInitialComponent());
    }
    if (showCourseConfigLink) {
      myTool.addLink(TOOLBOX_LINK_COURSECONFIG, translate("command.courseconfig"));
    }
    myTool.addPopUpLink("personalnote", translate("command.personalnote"), null, null, "750", "550", false);
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.