congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AnnotationInstance.value
Code IndexAdd Tabnine to your IDE (free)

How to use
value
method
in
org.jboss.jandex.AnnotationInstance

Best Java code snippets using org.jboss.jandex.AnnotationInstance.value (Showing top 20 results out of 315)

origin: wildfly/wildfly

  @Override
  protected Integer fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    final long timeout = annotationInstance.value().asLong();
    AnnotationValue unitAnnVal = annotationInstance.value("unit");
    final TimeUnit unit = unitAnnVal != null ? TimeUnit.valueOf(unitAnnVal.asEnum()) : TimeUnit.SECONDS;
    return (int) unit.toSeconds(timeout);
  }
}
origin: wildfly/wildfly

  @Override
  protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    return annotationInstance.value().asString();
  }
}
origin: wildfly/wildfly

  @Override
  protected LockType fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    AnnotationValue value = annotationInstance.value();
    if(value == null) {
      return LockType.WRITE;
    }
    return LockType.valueOf(annotationInstance.value().asEnum());
  }
}
origin: wildfly/wildfly

  @Override
  protected Boolean fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    return annotationInstance.value().asBoolean();
  }
}
origin: wildfly/wildfly

private Properties getActivationConfigProperties(final AnnotationInstance messageBeanAnnotation, PropertyReplacer propertyReplacer) {
  final Properties props = new Properties();
  final AnnotationValue activationConfig = messageBeanAnnotation.value("activationConfig");
  if (activationConfig == null)
    return props;
  for (final AnnotationInstance propAnnotation : activationConfig.asNestedArray()) {
    String propertyName = propAnnotation.value("propertyName").asString();
    String propertyValue = propAnnotation.value("propertyValue").asString();
    props.put(propertyReplacer.replaceProperties(propertyName), propertyReplacer.replaceProperties(propertyValue));
  }
  return props;
}
origin: wildfly/wildfly

  @Override
  protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    String resourceAdapterValue = annotationInstance.value().asString();
    return propertyReplacer.replaceProperties(resourceAdapterValue);
  }
}
origin: wildfly/wildfly

  @Override
  protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    return propertyReplacer.replaceProperties(annotationInstance.value().asString());
  }
}
origin: wildfly/wildfly

  @Override
  protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    AnnotationValue value = annotationInstance.value();
    if (value == null) {
      return null;
    }
    return propertyReplacer.replaceProperties(value.asString());
  }
}
origin: wildfly/wildfly

protected List<TargetAnnotation> fromMultiAnnotation(AnnotationInstance multiAnnotationInstance) {
  List<TargetAnnotation> instances = new ArrayList<TargetAnnotation>();
  final AnnotationInstance[] values = multiAnnotationInstance.value().asNestedArray();
  for(AnnotationInstance value : values) {
    instances.add(new TargetAnnotation(value, multiAnnotationInstance.target()));
  }
  return instances;
}
origin: wildfly/wildfly

  @Override
  protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    AnnotationValue value = annotationInstance.value();
    return value.asClass().toString();
  }
}
origin: wildfly/wildfly

  @Override
  protected String[] fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    String[] values = annotationInstance.value().asStringArray();
    for (int i = 0; i < values.length; i++) {
      values[i] = propertyReplacer.replaceProperties(values[i]);
    }
    return values;
  }
}
origin: wildfly/wildfly

  @Override
  protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    AnnotationValue value = annotationInstance.value();
    return value.asClass().toString();
  }
}
origin: wildfly/wildfly

  @Override
  protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    return propertyReplacer.replaceProperties(annotationInstance.value().asString());
  }
}
origin: wildfly/wildfly

  @Override
  protected String[] fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    String[] values = annotationInstance.value().asStringArray();
    for (int i = 0; i < values.length; i++) {
      values[i] = propertyReplacer.replaceProperties(values[i]);
    }
    return values;
  }
}
origin: wildfly/wildfly

  @Override
  protected String[] fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    String[] values = annotationInstance.value().asStringArray();
    for (int i = 0; i < values.length; i++) {
      values[i] = propertyReplacer.replaceProperties(values[i]);
    }
    return values;
  }
}
origin: wildfly/wildfly

  @Override
  protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    return propertyReplacer.replaceProperties(annotationInstance.value().asString());
  }
}
origin: wildfly/wildfly

  @Override
  protected ConcurrencyManagementType fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    final AnnotationValue value = annotationInstance.value();
    if(value == null) {
      return ConcurrencyManagementType.CONTAINER;
    }
    return ConcurrencyManagementType.valueOf(value.asEnum());
  }
}
origin: wildfly/wildfly

  @Override
  protected TransactionAttributeType fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {

    final AnnotationValue value = annotationInstance.value();
    if(value == null) {
      return TransactionAttributeType.REQUIRED;
    }
    return TransactionAttributeType.valueOf(value.asEnum());
  }
}
origin: wildfly/wildfly

  @Override
  protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) {
    AnnotationValue value = annotationInstance.value();
    if (value == null || value.asString().isEmpty()) {
      throw EeLogger.ROOT_LOGGER.annotationAttributeMissing("@Pool", "value");
    }
    return propertyReplacer.replaceProperties(value.asString());
  }
}
origin: wildfly/wildfly

  public static String asRequiredString(AnnotationInstance annotationInstance, final String attributeName, PropertyReplacer propertyReplacer) {
    final AnnotationValue nameValue = annotationInstance.value(attributeName);
    if (nameValue == null) {
      throw ROOT_LOGGER.annotationAttributeMissing(annotationInstance.name().toString(), attributeName);
    }
    final String nameValueAsString = nameValue.asString();
    if (nameValueAsString.isEmpty()) {
      throw ROOT_LOGGER.annotationAttributeMissing(annotationInstance.name().toString(), attributeName);
    }
    return propertyReplacer != null ? propertyReplacer.replaceProperties(nameValueAsString) : nameValueAsString;
  }
}
org.jboss.jandexAnnotationInstancevalue

Javadoc

Returns the value that is associated with the special default "value" parameter.

Popular methods of AnnotationInstance

  • target
  • name
  • toString
  • values
  • create
  • <init>
  • equals
    Returns whether or not this annotation instance is equivalent to another instance. An annotation ins
  • hashCode
    Returns a hash code representing this object.
  • valueWithDefault
    Returns a value that corresponds with the specified parameter name, accounting for its default value

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JFileChooser (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now