Examples of types()


Examples of org.qi4j.runtime.value.ValueInstance.types()

    public <T> ValueBuilder<T> newValueBuilderWithPrototype( T prototype )
    {
        NullArgumentException.validateNotNull( "prototype", prototype );

        ValueInstance valueInstance = ValueInstance.valueInstanceOf( (ValueComposite) prototype );
        Class<Composite> valueType = (Class<Composite>) first( valueInstance.types() );

        ModelModule<ValueModel> modelModule = typeLookup.lookupValueModel( valueType );

        if( modelModule == null )
        {
View Full Code Here

Examples of org.qi4j.runtime.value.ValueModel.types()

                return true;
            }
            else if( visited instanceof ValueModel )
            {
                ValueModel valueModel = (ValueModel) visited;
                boolean typeEquality = Specifications.in( valueModel.types() ).satisfiedBy( type );
                if( typeEquality && valueModel.visibility().ordinal() >= visibility.ordinal() )
                {
                    foundModel = valueModel;
                }
            }
View Full Code Here

Examples of org.qi4j.tools.model.descriptor.ImportedServiceCompositeDescriptor.types()

                rows.add( new TableRow( 2, layerRow, ( (ImportedServiceDetailDescriptor) objectDesciptor ).module().layer() ) );
            }
            else if( objectDesciptor instanceof EntityDetailDescriptor )
            {
                EntityDescriptor descriptor = ( (EntityDetailDescriptor) objectDesciptor ).descriptor();
                Class<?> type = first( descriptor.types() );
                rows.add( new TableRow( 2, nameRow, type.getSimpleName() ) );
                rows.add( new TableRow( 2, classRow, type.getName() ) );
                rows.add( new TableRow( 2, visibilityRow, descriptor.visibility().toString() ) );
                rows.add( new TableRow( 2, moduleRow, ( (EntityDetailDescriptor) objectDesciptor ).module() ) );
                rows.add( new TableRow( 2, layerRow, ( (EntityDetailDescriptor) objectDesciptor ).module().layer() ) );
View Full Code Here

Examples of org.sonar.api.batch.sensor.internal.DefaultSensorDescriptor.types()

    assertThat(descriptor.name()).isEqualTo("Foo");
    assertThat(descriptor.dependsOn()).containsOnly(CoreMetrics.NCLOC);
    assertThat(descriptor.provides()).containsOnly(CoreMetrics.BLOCKER_VIOLATIONS);
    assertThat(descriptor.languages()).containsOnly("java", "php");
    assertThat(descriptor.types()).containsOnly(InputFile.Type.MAIN);
  }

}
View Full Code Here

Examples of org.springframework.web.bind.annotation.SessionAttributes.types()

    this.typeLevelMapping = handlerType.getAnnotation(RequestMapping.class);
    SessionAttributes sessionAttributes = handlerType.getAnnotation(SessionAttributes.class);
    this.sessionAttributesFound = (sessionAttributes != null);
    if (this.sessionAttributesFound) {
      this.sessionAttributeNames.addAll(Arrays.asList(sessionAttributes.value()));
      this.sessionAttributeTypes.addAll(Arrays.asList(sessionAttributes.types()));
    }
  }


  public final boolean hasHandlerMethods() {
View Full Code Here

Examples of org.springframework.web.bind.annotation.SessionAttributes.types()

    this.sessionAttributeStore = sessionAttributeStore;

    SessionAttributes annotation = AnnotationUtils.findAnnotation(handlerType, SessionAttributes.class);
    if (annotation != null) {
      this.attributeNames.addAll(Arrays.asList(annotation.value()));
      this.attributeTypes.addAll(Arrays.<Class<?>>asList(annotation.types()));
    }

    for (String attributeName : this.attributeNames) {
      this.knownAttributeNames.put(attributeName, Boolean.TRUE);
    }
View Full Code Here

Examples of org.springframework.web.bind.annotation.SessionAttributes.types()

    this.typeLevelMapping = AnnotationUtils.findAnnotation(handlerType, RequestMapping.class);
    SessionAttributes sessionAttributes = AnnotationUtils.findAnnotation(handlerType, SessionAttributes.class);
    this.sessionAttributesFound = (sessionAttributes != null);
    if (this.sessionAttributesFound) {
      this.sessionAttributeNames.addAll(Arrays.asList(sessionAttributes.value()));
      this.sessionAttributeTypes.addAll(Arrays.asList(sessionAttributes.types()));
    }
  }

  protected boolean isHandlerMethod(Method method) {
    return AnnotationUtils.findAnnotation(method, RequestMapping.class) != null;
View Full Code Here

Examples of org.springframework.web.bind.annotation.SessionAttributes.types()

    this.typeLevelMapping = AnnotationUtils.findAnnotation(handlerType, RequestMapping.class);
    SessionAttributes sessionAttributes = AnnotationUtils.findAnnotation(handlerType, SessionAttributes.class);
    this.sessionAttributesFound = (sessionAttributes != null);
    if (this.sessionAttributesFound) {
      this.sessionAttributeNames.addAll(Arrays.asList(sessionAttributes.value()));
      this.sessionAttributeTypes.addAll(Arrays.asList(sessionAttributes.types()));
    }
  }

  protected boolean isHandlerMethod(Method method) {
    return AnnotationUtils.findAnnotation(method, RequestMapping.class) != null;
View Full Code Here

Examples of org.springframework.web.bind.annotation.SessionAttributes.types()

    this.sessionAttributeStore = sessionAttributeStore;
   
    SessionAttributes annotation = AnnotationUtils.findAnnotation(handlerType, SessionAttributes.class);
    if (annotation != null) {
      this.attributeNames.addAll(Arrays.asList(annotation.value()));
      this.attributeTypes.addAll(Arrays.<Class<?>>asList(annotation.types()));
    }   
  }

  /**
   * Whether the controller represented by this instance has declared session
View Full Code Here

Examples of org.springframework.web.bind.annotation.SessionAttributes.types()

      }
      // Expose model attributes as session attributes, if required.
      Map<String, Object> model = (mav != null ? mav.getModel() : implicitModel);
      Set<Object> sessionAttributeSet = new HashSet<Object>();
      sessionAttributeSet.addAll(Arrays.asList(sessionAttributes.value()));
      sessionAttributeSet.addAll(Arrays.asList(sessionAttributes.types()));
      for (Map.Entry entry : new HashSet<Map.Entry>(model.entrySet())) {
        String attrName = (String) entry.getKey();
        Object attrValue = entry.getValue();
        if (sessionAttributeSet.contains(attrName) ||
            (attrValue != null && sessionAttributeSet.contains(attrValue.getClass()))) {
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.