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

How to use
getActualTypeArguments
method
in
org.jboss.weld.annotated.enhanced.EnhancedAnnotatedParameter

Best Java code snippets using org.jboss.weld.annotated.enhanced.EnhancedAnnotatedParameter.getActualTypeArguments (Showing top 6 results out of 315)

origin: weld/core

@Override
protected void checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?, ?> eventParameter) {
  Class<?> rawObserverType = Reflections.getRawType(getObservedType());
  boolean isProcessAnnotatedType = rawObserverType.equals(ProcessAnnotatedType.class) || rawObserverType.equals(ProcessSyntheticAnnotatedType.class);
  if (!isProcessAnnotatedType && !requiredTypeAnnotations.isEmpty()) {
    throw EventLogger.LOG
        .invalidWithAnnotations(this, Formats.formatAsStackTraceElement(eventParameter.getDeclaringEnhancedCallable().getJavaMember()));
  }
  if (isProcessAnnotatedType && requiredTypeAnnotations.isEmpty()) {
    Type[] typeArguments = eventParameter.getActualTypeArguments();
    if (typeArguments.length == 0 || Reflections.isUnboundedWildcard(typeArguments[0]) || Reflections.isUnboundedTypeVariable(typeArguments[0])) {
      EventLogger.LOG.unrestrictedProcessAnnotatedTypes(this);
    }
  }
}
origin: weld/core

@Override
protected void checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?, ?> eventParameter) {
  Class<?> rawObserverType = Reflections.getRawType(getObservedType());
  boolean isProcessAnnotatedType = rawObserverType.equals(ProcessAnnotatedType.class) || rawObserverType.equals(ProcessSyntheticAnnotatedType.class);
  if (!isProcessAnnotatedType && !requiredTypeAnnotations.isEmpty()) {
    throw EventLogger.LOG
        .invalidWithAnnotations(this, Formats.formatAsStackTraceElement(eventParameter.getDeclaringEnhancedCallable().getJavaMember()));
  }
  if (isProcessAnnotatedType && requiredTypeAnnotations.isEmpty()) {
    Type[] typeArguments = eventParameter.getActualTypeArguments();
    if (typeArguments.length == 0 || Reflections.isUnboundedWildcard(typeArguments[0]) || Reflections.isUnboundedTypeVariable(typeArguments[0])) {
      EventLogger.LOG.unrestrictedProcessAnnotatedTypes(this);
    }
  }
}
origin: weld/core

@Override
protected void checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?, ?> eventParameter) {
  Class<?> rawObserverType = Reflections.getRawType(getObservedType());
  boolean isProcessAnnotatedType = rawObserverType.equals(ProcessAnnotatedType.class) || rawObserverType.equals(ProcessSyntheticAnnotatedType.class);
  if (!isProcessAnnotatedType && !requiredTypeAnnotations.isEmpty()) {
    throw EventLogger.LOG
        .invalidWithAnnotations(this, Formats.formatAsStackTraceElement(eventParameter.getDeclaringEnhancedCallable().getJavaMember()));
  }
  if (isProcessAnnotatedType && requiredTypeAnnotations.isEmpty()) {
    Type[] typeArguments = eventParameter.getActualTypeArguments();
    if (typeArguments.length == 0 || Reflections.isUnboundedWildcard(typeArguments[0]) || Reflections.isUnboundedTypeVariable(typeArguments[0])) {
      EventLogger.LOG.unrestrictedProcessAnnotatedTypes(this);
    }
  }
}
origin: org.jboss.weld.se/weld-se

@Override
protected void checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?, ?> eventParameter) {
  Class<?> rawObserverType = Reflections.getRawType(getObservedType());
  boolean isProcessAnnotatedType = rawObserverType.equals(ProcessAnnotatedType.class) || rawObserverType.equals(ProcessSyntheticAnnotatedType.class);
  if (!isProcessAnnotatedType && !requiredTypeAnnotations.isEmpty()) {
    throw EventLogger.LOG
        .invalidWithAnnotations(this, Formats.formatAsStackTraceElement(eventParameter.getDeclaringEnhancedCallable().getJavaMember()));
  }
  if (isProcessAnnotatedType && requiredTypeAnnotations.isEmpty()) {
    Type[] typeArguments = eventParameter.getActualTypeArguments();
    if (typeArguments.length == 0 || Reflections.isUnboundedWildcard(typeArguments[0]) || Reflections.isUnboundedTypeVariable(typeArguments[0])) {
      EventLogger.LOG.unrestrictedProcessAnnotatedTypes(this);
    }
  }
}
origin: org.jboss.weld.se/weld-se-shaded

@Override
protected void checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?, ?> eventParameter) {
  Class<?> rawObserverType = Reflections.getRawType(getObservedType());
  boolean isProcessAnnotatedType = rawObserverType.equals(ProcessAnnotatedType.class) || rawObserverType.equals(ProcessSyntheticAnnotatedType.class);
  if (!isProcessAnnotatedType && !requiredTypeAnnotations.isEmpty()) {
    throw EventLogger.LOG
        .invalidWithAnnotations(this, Formats.formatAsStackTraceElement(eventParameter.getDeclaringEnhancedCallable().getJavaMember()));
  }
  if (isProcessAnnotatedType && requiredTypeAnnotations.isEmpty()) {
    Type[] typeArguments = eventParameter.getActualTypeArguments();
    if (typeArguments.length == 0 || Reflections.isUnboundedWildcard(typeArguments[0]) || Reflections.isUnboundedTypeVariable(typeArguments[0])) {
      EventLogger.LOG.unrestrictedProcessAnnotatedTypes(this);
    }
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
protected void checkRequiredTypeAnnotations(EnhancedAnnotatedParameter<?, ?> eventParameter) {
  Class<?> rawObserverType = Reflections.getRawType(getObservedType());
  boolean isProcessAnnotatedType = rawObserverType.equals(ProcessAnnotatedType.class) || rawObserverType.equals(ProcessSyntheticAnnotatedType.class);
  if (!isProcessAnnotatedType && !requiredTypeAnnotations.isEmpty()) {
    throw EventLogger.LOG
        .invalidWithAnnotations(this, Formats.formatAsStackTraceElement(eventParameter.getDeclaringEnhancedCallable().getJavaMember()));
  }
  if (isProcessAnnotatedType && requiredTypeAnnotations.isEmpty()) {
    Type[] typeArguments = eventParameter.getActualTypeArguments();
    if (typeArguments.length == 0 || Reflections.isUnboundedWildcard(typeArguments[0]) || Reflections.isUnboundedTypeVariable(typeArguments[0])) {
      EventLogger.LOG.unrestrictedProcessAnnotatedTypes(this);
    }
  }
}
org.jboss.weld.annotated.enhancedEnhancedAnnotatedParametergetActualTypeArguments

Popular methods of EnhancedAnnotatedParameter

  • getAnnotation
  • getBaseType
  • getDeclaringEnhancedCallable
  • getJavaClass
  • getMetaAnnotations
  • getPosition
  • getQualifiers
  • isAnnotationPresent
  • slim
    Returns a lightweight implementation of AnnotatedParameter with minimal memory footprint.
  • getDeclaringCallable
  • getDeclaringType
  • getDeclaringType

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • CodeWhisperer alternatives
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