Examples of asNestedArray()


Examples of org.jboss.jandex.AnnotationValue.asNestedArray()

    }

    @Override
    public boolean process(AnnotationInstance annotationInstance) {
      AnnotationValue value = annotationInstance.value();
      AnnotationInstance[] indexedAttributeOverridesValues = value.asNestedArray();
      for ( AnnotationInstance ai : indexedAttributeOverridesValues ) {
        child.process( ai );
      }
      return true;
    }
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asNestedArray()

    AnnotationValue value = tableAnnotation.value( "uniqueConstraints" );
    if ( value == null ) {
      return;
    }

    AnnotationInstance[] uniqueConstraints = value.asNestedArray();
    for ( AnnotationInstance unique : uniqueConstraints ) {
      String name = unique.value( "name" ) == null ? null : unique.value( "name" ).asString();
      String[] columnNames = unique.value( "columnNames" ).asStringArray();
      UniqueConstraintSourceImpl uniqueConstraintSource =
          new UniqueConstraintSourceImpl(
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asNestedArray()

  @Override
  protected Map<String, String> resolveHibernateTypeParameters(AnnotationInstance typeAnnotation) {
    HashMap<String, String> typeParameters = new HashMap<String, String>();
    AnnotationValue parameterAnnotationValue = typeAnnotation.value( "parameters" );
    if ( parameterAnnotationValue != null ) {
      AnnotationInstance[] parameterAnnotations = parameterAnnotationValue.asNestedArray();
      for ( AnnotationInstance parameterAnnotationInstance : parameterAnnotations ) {
        typeParameters.put(
            JandexHelper.getValue( parameterAnnotationInstance, "name", String.class ),
            JandexHelper.getValue( parameterAnnotationInstance, "value", String.class )
        );
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asNestedArray()

            PersistenceContextType type = (pcType == null || PersistenceContextType.TRANSACTION.name().equals(pcType.asString()))
                ? PersistenceContextType.TRANSACTION : PersistenceContextType.EXTENDED;

            Map properties;
            AnnotationValue value = annotation.value("properties");
            AnnotationInstance[] props = value != null ? value.asNestedArray() : null;
            if (props != null) {
                properties = new HashMap();
                for (int source = 0; source < props.length; source++) {
                    properties.put(props[source].value("name"), props[source].value("value"));
                }
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asNestedArray()

    private Properties getActivationConfigProperties(final AnnotationInstance messageBeanAnnotation) {
        final Properties props = new Properties();
        final AnnotationValue activationConfig = messageBeanAnnotation.value("activationConfig");
        if (activationConfig == null)
            return props;
        for (final AnnotationInstance propAnnotation : activationConfig.asNestedArray()) {
            props.put(propAnnotation.value("propertyName").asString(), propAnnotation.value("propertyValue").asString());
        }
        return props;
    }
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asNestedArray()

        final List<AnnotationInstance> ejbsAnnotations = index.getAnnotations(EJBS_ANNOTATION_NAME);
        for (AnnotationInstance annotation : ejbsAnnotations) {
            final AnnotationTarget annotationTarget = annotation.target();
            if (annotationTarget instanceof ClassInfo) {
                final AnnotationValue annotationValue = annotation.value();
                final AnnotationInstance[] ejbAnnotations = annotationValue.asNestedArray();
                for (AnnotationInstance ejbAnnotation : ejbAnnotations) {
                    final EJBResourceWrapper annotationWrapper = new EJBResourceWrapper(ejbAnnotation);
                    processClass(deploymentUnit, annotationWrapper, (ClassInfo) annotationTarget, moduleDescription);
                }
            } else {
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asNestedArray()

    }

    @Override
    public boolean process(AnnotationInstance annotationInstance) {
      AnnotationValue value = annotationInstance.value();
      AnnotationInstance[] indexedAttributeOverridesValues = value.asNestedArray();
      for ( AnnotationInstance ai : indexedAttributeOverridesValues ) {
        child.process( ai );
      }
      return true;
    }
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asNestedArray()

  @Override
  protected Map<String, String> resolveHibernateTypeParameters(AnnotationInstance typeAnnotation) {
    HashMap<String, String> typeParameters = new HashMap<String, String>();
    AnnotationValue parameterAnnotationValue = typeAnnotation.value( "parameters" );
    if ( parameterAnnotationValue != null ) {
      AnnotationInstance[] parameterAnnotations = parameterAnnotationValue.asNestedArray();
      for ( AnnotationInstance parameterAnnotationInstance : parameterAnnotations ) {
        typeParameters.put(
            JandexHelper.getValue( parameterAnnotationInstance, "name", String.class ),
            JandexHelper.getValue( parameterAnnotationInstance, "value", String.class )
        );
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asNestedArray()

    AnnotationValue value = tableAnnotation.value( "uniqueConstraints" );
    if ( value == null ) {
      return;
    }

    AnnotationInstance[] uniqueConstraints = value.asNestedArray();
    for ( AnnotationInstance unique : uniqueConstraints ) {
      String name = unique.value( "name" ) == null ? null : unique.value( "name" ).asString();
      String[] columnNames = unique.value( "columnNames" ).asStringArray();
      UniqueConstraintSourceImpl uniqueConstraintSource =
          new UniqueConstraintSourceImpl(
View Full Code Here

Examples of org.jboss.jandex.AnnotationValue.asNestedArray()

            PersistenceContextType type = (pcType == null || PersistenceContextType.TRANSACTION.name().equals(pcType.asString()))
                    ? PersistenceContextType.TRANSACTION : PersistenceContextType.EXTENDED;

            Map properties;
            AnnotationValue value = annotation.value("properties");
            AnnotationInstance[] props = value != null ? value.asNestedArray() : null;
            if (props != null) {
                properties = new HashMap();
                for (int source = 0; source < props.length; source++) {
                    properties.put(props[source].value("name"), props[source].value("value"));
                }
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.