Examples of ComponentType


Examples of com.badlogic.ashley.core.ComponentType

    assertNotNull(ComponentType.getFor(ComponentB.class));
  }
 
  @Test
  public void sameComponentType() {
    ComponentType componentType1 = ComponentType.getFor(ComponentA.class);
    ComponentType componentType2 = ComponentType.getFor(ComponentA.class);
   
    assertEquals(true, componentType1.equals(componentType2));
    assertEquals(true, componentType2.equals(componentType1));
    assertEquals(componentType1.getIndex(), componentType2.getIndex());
    assertEquals(componentType1.getIndex(), ComponentType.getIndexFor(ComponentA.class));
    assertEquals(componentType2.getIndex(), ComponentType.getIndexFor(ComponentA.class));
  }
View Full Code Here

Examples of com.scriptographer.ui.ComponentType

  }

  protected Item createItem(Dialog dialog) {
    // Item:
    item = null;
    ComponentType type = component.getType();
    switch (type) {
    case NUMBER: {
      Boolean steppers = component.getSteppers();
      if (steppers != null && steppers) {
        item = new SpinEdit(dialog) {
View Full Code Here

Examples of com.sun.jsftemplating.layout.descriptors.ComponentType

        String content = new String(FileUtil.readFromURL(contentURL));

        // Create a StaticText component and add it under the
        // "root" component.
        LayoutComponent stDesc = new LayoutComponent(null,
      "externalContent", new ComponentType("tmpTextCT",
      "com.sun.jsftemplating.component.factory.basic.StaticTextFactory"));
        stDesc.addOption("value", content);
        ComponentUtil.getInstance(ctx).createChildComponent(ctx, stDesc, root);
    } else {
        // Include the first one...
View Full Code Here

Examples of gov.nasa.arc.mct.importExport.provider.generated.ComponentType

        throws Exception {
   
      File file = new File(inputFilename);
     
      ComponentListType components = XMLPersistence.unmarshal(file);
      ComponentType component = components.getComponent().get(0);
     
      Assert.assertNotNull(component);
      Assert.assertEquals(component.getComponentId(), expectedRootID);
     
    }
View Full Code Here

Examples of jp.co.nskint.uq.pd.signage.model.xml.ComponentType

                    if( clazz == null) {
                        continue;
                    }

                    ComponentType component = clazz.newInstance();
                    NumberingParamaterMap map = new NumberingParamaterMap(this.request);
                    map.setNumber(i);
                    BeanUtil.copy(map, component);
                    layoutXml.getComponents().add(component);
                }
View Full Code Here

Examples of org.apache.synapse.aspects.ComponentType

        return ((MediationStatisticsStore) getConfigContext().
                getProperty(StatisticsConstants.STAT_PROPERTY)).getResourceNames(ComponentType.ENDPOINT);
    }

    public InOutStatisticsRecord getCategoryStatistics(int category) {
        ComponentType type = StatisticsUtil.getComponentType(category);
        return getCategoryStatistics(type);
    }
View Full Code Here

Examples of org.apache.tuscany.model.assembly.ComponentType

    private List<ContextFactory<Context>> createConfigurations() throws BuilderException, ConfigurationLoadException {
        WireFactoryService wireService = new DefaultWireFactoryService(new MessageFactoryImpl(), new JDKWireFactoryFactory(), new DefaultPolicyBuilderRegistry());
        JavaContextFactoryBuilder builder = new JavaContextFactoryBuilder(wireService);
        AtomicComponent component = MockFactory.createComponent("TestService1", SessionScopeComponentImpl.class, Scope.SESSION);
        ComponentTypeIntrospector introspector = MockFactory.getIntrospector();
        ComponentType type = introspector.introspect(SessionScopeComponentImpl.class);
        component.getImplementation().setComponentType(type);
        builder.build(component);
        List<ContextFactory<Context>> configs = new ArrayList<ContextFactory<Context>>();
        configs.add((ContextFactory<Context>) component.getContextFactory());
        return configs;
View Full Code Here

Examples of org.apache.tuscany.sca.assembly.ComponentType

            throw new ContributionResolveException("Class could not be resolved: " + implementation.getPOJOName());
        }
        implementation.setPOJOClass(pojoClass);
       
        // Check to see if we have a .componentType file describing the POJO class
        ComponentType componentType = assemblyFactory.createComponentType();
        componentType.setUnresolved(true);
        componentType.setURI(implementation.getURI() + ".componentType");
        componentType = resolver.resolveModel(ComponentType.class, componentType);
        if (!componentType.isUnresolved()) {
           
            // We have a component type description, merge it into the POJO model
            implementation.getServices().addAll(componentType.getServices());
            implementation.getReferences().addAll(componentType.getReferences());
            implementation.getProperties().addAll(componentType.getProperties());
           
        } else {
           
            // We have no component type description, simply introspect the POJO and
            // create a single Service for it
View Full Code Here

Examples of org.apache.tuscany.spi.model.ComponentType

       
     
    }

    protected RubyComponentType loadFromSidefile(URL url, DeploymentContext deploymentContext) throws LoaderException {
        ComponentType ct = loaderRegistry.load(null,
                                               url,
                                               ComponentType.class,
                                               deploymentContext);
        RubyComponentType jsct = new RubyComponentType(ct);
        return jsct;
View Full Code Here

Examples of org.beangle.model.entity.types.ComponentType

    ClassMetadata cm = sessionFactory.getClassMetadata(entityName);
    org.hibernate.type.ComponentType hcType = (org.hibernate.type.ComponentType) cm
        .getPropertyType(propertyName);
    String[] propertyNames = hcType.getPropertyNames();

    ComponentType cType = new ComponentType(hcType.getReturnedClass());
    Map<String, Type> propertyTypes = cType.getPropertyTypes();
    for (int j = 0; j < propertyNames.length; j++) {
      org.hibernate.type.Type type = cm.getPropertyType(propertyName + "." + propertyNames[j]);
      if (type.isEntityType()) {
        propertyTypes.put(propertyNames[j], buildEntityType(sessionFactory, type.getName()));
      } else if (type.isComponentType()) {
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.