Examples of ComponentType


Examples of org.jboss.managed.api.ComponentType

    * @throws Exception
    */
   public void testHotDeploymentBeans() throws Exception
   {
      ManagementView mgtView = getManagementView();
      ComponentType type = new ComponentType("MCBean", "ServerConfig");
      ManagedComponent mc = mgtView.getComponent("jboss.system:type=ServerConfig", type);
      assertNotNull(mc);
      ManagedProperty homeDirProperty = mc.getProperty("serverHomeDir");
      assertNotNull("serverHomeDir property exists", homeDirProperty);
      String homeDir = (String) ((SimpleValue) homeDirProperty.getValue()).getValue();
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

      getLog().debug(eventInfo);
   }
  
   protected ManagedComponent getManagedComponent(ManagementView mgtView, String name) throws Exception
   {
      ComponentType type = new ComponentType("DataSource", "LocalTx");
      ManagedComponent ds = mgtView.getComponent(name, type);
      return ds;
   }
View Full Code Here

Examples of org.jboss.managed.api.ComponentType

   public void testRemoveComponent () throws Exception
   {
     String componentName = "defaultDS";
     ManagementView mgtView = getManagementView();
    
     ComponentType type = new ComponentType("DataSource", "LocalTx");
     Set<ManagedComponent> comps = mgtView.getComponentsForType(type);
    
     // maybe a mgtView.getComponentByNameAndType(type, componentName) would be helpful
     // i'm assuming componentName and type will be unique in a given profile.
    
View Full Code Here

Examples of org.kiji.schema.avro.ComponentType

    return correctedValues;
  }

  private static List<List<Object>> createFilterCombinations(List<RowKeyComponent> components) {
    List<List<Object>> combinations = Lists.newArrayList();
    ComponentType type = components.get(0).getType();
    if (components.size() == 1) {
      combinations.add(Lists.newArrayList(createStableValue(type)));
      combinations.add(Lists.newArrayList((Object)null));
    } else {
      List<List<Object>> subCombinations =
View Full Code Here

Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ComponentType

     * @param manEvt
     * @return Source EPR
     */
    private EndpointReferenceType parseSourceEpr(ManagementEventTypeImpl manEvt)
    {
        ComponentType sourceComponent = manEvt.getSourceComponent();
        ComponentAddressType sourceCompAddr = sourceComponent.getComponentAddressArray(0);
        EndpointReferenceType sourceEpr =
                (EndpointReferenceType) XmlBeanUtils.getChildElements(sourceCompAddr)[0];
        return sourceEpr;
    }
View Full Code Here

Examples of org.objectweb.fractal.api.type.ComponentType

   
    Component boot = Utils.getBootstrapComponent();
      PAGCMTypeFactory tf = Utils.getPAGCMTypeFactory(boot);
      PAGenericFactory gf = Utils.getPAGenericFactory(boot);
     
      ComponentType tTest = tf.createFcType(new InterfaceType[] {
          tf.createGCMItfType(
              "runnable",
              MSRunnable.class.getName(),
              GCMTypeFactory.SERVER,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
        tf.createGCMItfType(
            "scc",
            SkandiumComponentController.class.getName(),
            GCMTypeFactory.SERVER,
            GCMTypeFactory.OPTIONAL,
            GCMTypeFactory.SINGLETON_CARDINALITY)
      });
     
      ComponentType tMergeSort = tf.createFcType(new InterfaceType[] {
          tf.createGCMItfType(
              "runnable",
              MSRunnable.class.getName(),
              GCMTypeFactory.SERVER,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
          tf.createGCMItfType(
              "sc",
              SkandiumComponent.class.getName(),
              GCMTypeFactory.CLIENT,
              GCMTypeFactory.MANDATORY,
              GCMTypeFactory.SINGLETON_CARDINALITY),
        tf.createGCMItfType(
              "scrr",
              SCResultReceiver.class.getName(),
              GCMTypeFactory.SERVER,
            GCMTypeFactory.MANDATORY,
            GCMTypeFactory.SINGLETON_CARDINALITY)
      });
     
      ComponentType tSC = tf.createFcType(new InterfaceType[] {
          tf.createGCMItfType(
              "sc",
              SkandiumComponent.class.getName(),
              GCMTypeFactory.SERVER,
              GCMTypeFactory.MANDATORY,
View Full Code Here

Examples of pt.webdetails.cdf.dd.model.meta.ComponentType

   
    // camelName is the name by which the property will be registered
    // on the client, by means of PropertiesManager.register(...)
    String fullName = camelName;
   
    ComponentType owner = prop.getOwner();
    if(owner != null)
    {
      String modelId = CdeRunJsHelper.getComponentTypeModelId(owner);
      fullName = modelId + "_" + fullName;
    }
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.