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

How to use
asStringArray
method
in
org.jboss.jandex.AnnotationValue

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

origin: wildfly/wildfly

public static String[] asOptionalStringArray(AnnotationInstance annotation, String property) {
  AnnotationValue value = annotation.value(property);
  return value == null ? new String[0] : value.asStringArray();
}
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) {
    String[] values = annotationInstance.value().asStringArray();
    for (int i = 0; i < values.length; i++) {
      values[i] = propertyReplacer.replaceProperties(values[i]);
    }
    return values;
  }
}
origin: wildfly/wildfly

AnnotationValue urlPatternsValue = annotation.value("urlPatterns");
if (urlPatternsValue != null) {
  for (String urlPattern : urlPatternsValue.asStringArray()) {
    urlPatterns.add(urlPattern);
  for (String urlPattern : urlPatternsValue.asStringArray()) {
    urlPatterns.add(urlPattern);
AnnotationValue urlPatternsValue = annotation.value("urlPatterns");
if (urlPatternsValue != null) {
  for (String urlPattern : urlPatternsValue.asStringArray()) {
    urlPatterns.add(urlPattern);
  for (String urlPattern : urlPatternsValue.asStringArray()) {
    urlPatterns.add(urlPattern);
  for (String servletName : servletNamesValue.asStringArray()) {
    servletNames.add(servletName);
for (String role : annotation.value().asStringArray()) {
  SecurityRoleMetaData sr = new SecurityRoleMetaData();
  sr.setRoleName(role);
    for (String role : rolesAllowedValue.asStringArray()) {
      rolesAllowed.add(role);
      rolesAllowed = new ArrayList<String>();
      if (rolesAllowedValue != null) {
        for (String role : rolesAllowedValue.asStringArray()) {
origin: org.jboss.as/jboss-as-ejb3

  @Override
  protected String[] fromAnnotation(final AnnotationInstance annotationInstance) {
    return annotationInstance.value().asStringArray();
  }
}
origin: org.wildfly/wildfly-ee

public static String[] asOptionalStringArray(AnnotationInstance annotation, String property) {
  AnnotationValue value = annotation.value(property);
  return value == null ? new String[0] : value.asStringArray();
}
origin: org.jboss.as/jboss-as-ejb3

  @Override
  protected String[] fromAnnotation(final AnnotationInstance annotationInstance) {
    return annotationInstance.value().asStringArray();
  }
}
origin: org.jboss.as/jboss-as-ejb3

  @Override
  protected String[] fromAnnotation(final AnnotationInstance annotationInstance) {
    return annotationInstance.value().asStringArray();
  }
}
origin: org.jboss.as/jboss-as-connector

private String[] asArray(final AnnotationInstance annotation, String property) {
  AnnotationValue value = annotation.value(property);
  return value == null ? null : value.asStringArray();
}
origin: org.jboss.eap/wildfly-ee

public static String[] asOptionalStringArray(AnnotationInstance annotation, String property) {
  AnnotationValue value = annotation.value(property);
  return value == null ? new String[0] : value.asStringArray();
}
origin: org.hibernate/com.springsource.org.hibernate.core

private List<String> determineSynchronizedTableNames() {
  final AnnotationInstance synchronizeAnnotation = JandexHelper.getSingleAnnotation(
      getClassInfo(), HibernateDotNames.SYNCHRONIZE
  );
  if ( synchronizeAnnotation != null ) {
    final String[] tableNames = synchronizeAnnotation.value().asStringArray();
    return Arrays.asList( tableNames );
  }
  else {
    return Collections.emptyList();
  }
}
origin: org.hibernate/com.springsource.org.hibernate

private List<String> determineSynchronizedTableNames() {
  final AnnotationInstance synchronizeAnnotation = JandexHelper.getSingleAnnotation(
      getClassInfo(), HibernateDotNames.SYNCHRONIZE
  );
  if ( synchronizeAnnotation != null ) {
    final String[] tableNames = synchronizeAnnotation.value().asStringArray();
    return Arrays.asList( tableNames );
  }
  else {
    return Collections.emptyList();
  }
}
origin: org.wildfly.camel/wildfly-camel-subsystem-core

public boolean addConditionally(DeploymentUnit depUnit, CamelDeploymentSettings.Builder depSettingsBuilder, URL fileURL) {
  boolean skipResource = false;
  CompositeIndex index = depUnit.getAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX);
  // [#1215] Add support for Spring based CamelContext injection
  for (AnnotationInstance aninst : index.getAnnotations(DotName.createSimple("org.apache.camel.cdi.ImportResource"))) {
    for (String resname : aninst.value().asStringArray()) {
      skipResource |= fileURL.getPath().endsWith(resname);
    }
  }
  if (skipResource == false) {
    depSettingsBuilder.camelContextUrl(fileURL);
    return true;
  }
  return false;
}
origin: wildfly-extras/wildfly-camel

public boolean addConditionally(DeploymentUnit depUnit, CamelDeploymentSettings.Builder depSettingsBuilder, URL fileURL) {
  boolean skipResource = false;
  CompositeIndex index = depUnit.getAttachment(Attachments.COMPOSITE_ANNOTATION_INDEX);
  // [#1215] Add support for Spring based CamelContext injection
  for (AnnotationInstance aninst : index.getAnnotations(DotName.createSimple("org.apache.camel.cdi.ImportResource"))) {
    for (String resname : aninst.value().asStringArray()) {
      skipResource |= fileURL.getPath().endsWith(resname);
    }
  }
  if (skipResource == false) {
    depSettingsBuilder.camelContextUrl(fileURL);
    return true;
  }
  return false;
}
origin: org.hibernate/com.springsource.org.hibernate

private void createUniqueConstraints(AnnotationInstance tableAnnotation, String tableName) {
  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(
            name, tableName, Arrays.asList( columnNames )
        );
    constraintSources.add( uniqueConstraintSource );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private void createUniqueConstraints(AnnotationInstance tableAnnotation, String tableName) {
  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(
            name, tableName, Arrays.asList( columnNames )
        );
    constraintSources.add( uniqueConstraintSource );
  }
}
origin: org.jboss.as/jboss-as-webservices-server-integration

for (final AnnotationInstance allowedRole : allowedRoles) {
  if (allowedRole.target().equals(webServiceClassInfo)) {
    for (final String roleName : allowedRole.value().asStringArray()) {
     securityRoles.add(roleName);
for (final AnnotationInstance declareRole : declareRoles) {
  if (declareRole.target().equals(webServiceClassInfo)) {
    for (final String roleName : declareRole.value().asStringArray()) {
     securityRoles.add(roleName);
origin: org.jboss.eap/wildfly-webservices-server-integration

for (final AnnotationInstance allowedRole : allowedRoles) {
  if (allowedRole.target().equals(webServiceClassInfo)) {
    for (final String roleName : allowedRole.value().asStringArray()) {
     securityRoles.add(roleName);
for (final AnnotationInstance declareRole : declareRoles) {
  if (declareRole.target().equals(webServiceClassInfo)) {
    for (final String roleName : declareRole.value().asStringArray()) {
     securityRoles.add(roleName);
origin: org.wildfly/wildfly-webservices-server-integration

for (final AnnotationInstance allowedRole : allowedRoles) {
  if (allowedRole.target().equals(webServiceClassInfo)) {
    for (final String roleName : allowedRole.value().asStringArray()) {
     securityRoles.add(roleName);
for (final AnnotationInstance declareRole : declareRoles) {
  if (declareRole.target().equals(webServiceClassInfo)) {
    for (final String roleName : declareRole.value().asStringArray()) {
     securityRoles.add(roleName);
org.jboss.jandexAnnotationValueasStringArray

Javadoc

Returns a string array representation of the underlying array value. The behavior is identical to #asString() as if it were applied to every array element.

Popular methods of AnnotationValue

  • asString
  • asBoolean
  • asNestedArray
  • asClass
  • asInt
  • value
  • asEnum
  • asClassArray
  • asLong
  • asEnumArray
  • asNested
  • toString
  • asNested,
  • toString,
  • createArrayValue,
  • createBooleanValue,
  • createClassValue,
  • createEnumValue,
  • createIntegerValue,
  • createNestedAnnotationValue,
  • createStringValue

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JList (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
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