Codota Logo
SlimAnnotatedType.getJavaClass
Code IndexAdd Codota to your IDE (free)

How to use
getJavaClass
method
in
org.jboss.weld.annotated.slim.SlimAnnotatedType

Best Java code snippets using org.jboss.weld.annotated.slim.SlimAnnotatedType.getJavaClass (Showing top 20 results out of 315)

  • Common ways to obtain SlimAnnotatedType
private void myMethod () {
SlimAnnotatedType s =
  • Codota IconEnhancedAnnotatedType type;type.slim()
  • Codota IconAbstractClassBean abstractClassBean;abstractClassBean.getAnnotated()
  • Codota IconClassTransformer classTransformer;Class rawType;String bdaId;classTransformer.getBackedAnnotatedType(rawType, bdaId)
  • Smart code suggestions by Codota
}
origin: jersey/jersey

private boolean isInterceptionCandidate() {
  return !isInterceptor() && !isDecorator() && !Modifier.isAbstract(getType().getJavaClass().getModifiers());
}
origin: weld/core

private void replaceAnnotatedType(AnnotatedType<X> type) {
  if (!this.originalAnnotatedType.getJavaClass().equals(type.getJavaClass())) {
    throw BootstrapLogger.LOG.annotatedTypeJavaClassMismatch(this.annotatedType.getJavaClass(), type.getJavaClass());
  }
  AnnotatedTypeValidator.validateAnnotatedType(type);
  this.annotatedType = type;
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

private void replaceAnnotatedType(AnnotatedType<X> type) {
  if (!this.originalAnnotatedType.getJavaClass().equals(type.getJavaClass())) {
    throw BootstrapLogger.LOG.annotatedTypeJavaClassMismatch(this.annotatedType.getJavaClass(), type.getJavaClass());
  }
  AnnotatedTypeValidator.validateAnnotatedType(type);
  this.annotatedType = type;
}
origin: weld/core

private void replaceAnnotatedType(AnnotatedType<X> type) {
  if (!this.originalAnnotatedType.getJavaClass().equals(type.getJavaClass())) {
    throw BootstrapLogger.LOG.annotatedTypeJavaClassMismatch(this.annotatedType.getJavaClass(), type.getJavaClass());
  }
  AnnotatedTypeValidator.validateAnnotatedType(type);
  this.annotatedType = type;
}
origin: weld/core

private void replaceAnnotatedType(AnnotatedType<X> type) {
  if (!this.originalAnnotatedType.getJavaClass().equals(type.getJavaClass())) {
    throw BootstrapLogger.LOG.annotatedTypeJavaClassMismatch(this.annotatedType.getJavaClass(), type.getJavaClass());
  }
  AnnotatedTypeValidator.validateAnnotatedType(type);
  this.annotatedType = type;
}
origin: weld/core

public static ProcessAnnotatedTypeEventResolvable forProcessSyntheticAnnotatedType(SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery) {
  ParameterizedType type1 = new ParameterizedTypeImpl(ProcessAnnotatedType.class, new Type[] { annotatedType.getJavaClass() }, null);
  ParameterizedType type2 = new ParameterizedTypeImpl(ProcessSyntheticAnnotatedType.class, new Type[] { annotatedType.getJavaClass() }, null);
  return new ProcessAnnotatedTypeEventResolvable(Sets.<Type> newHashSet(Object.class, type1, type2), annotatedType, discovery);
}
origin: weld/core

@Override
protected void preSpecialize() {
  super.preSpecialize();
  Class<?> superclass = getAnnotated().getJavaClass().getSuperclass();
  if (superclass == null || superclass.equals(Object.class)) {
    throw BeanLogger.LOG.specializingBeanMustExtendABean(this);
  }
}
origin: org.jboss.weld.se/weld-se

public static ProcessAnnotatedTypeEventResolvable forProcessSyntheticAnnotatedType(SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery) {
  ParameterizedType type1 = new ParameterizedTypeImpl(ProcessAnnotatedType.class, new Type[] { annotatedType.getJavaClass() }, null);
  ParameterizedType type2 = new ParameterizedTypeImpl(ProcessSyntheticAnnotatedType.class, new Type[] { annotatedType.getJavaClass() }, null);
  return new ProcessAnnotatedTypeEventResolvable(Sets.<Type> newHashSet(Object.class, type1, type2), annotatedType, discovery);
}
origin: weld/core

@Override
protected void preSpecialize() {
  super.preSpecialize();
  Class<?> superclass = getAnnotated().getJavaClass().getSuperclass();
  if (superclass == null || superclass.equals(Object.class)) {
    throw BeanLogger.LOG.specializingBeanMustExtendABean(this);
  }
}
origin: org.jboss.weld.se/weld-se-shaded

@Override
protected void preSpecialize() {
  super.preSpecialize();
  Class<?> superclass = getAnnotated().getJavaClass().getSuperclass();
  if (superclass == null || superclass.equals(Object.class)) {
    throw BeanLogger.LOG.specializingBeanMustExtendABean(this);
  }
}
origin: weld/core

public static ProcessAnnotatedTypeEventResolvable forProcessSyntheticAnnotatedType(SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery) {
  ParameterizedType type1 = new ParameterizedTypeImpl(ProcessAnnotatedType.class, new Type[] { annotatedType.getJavaClass() }, null);
  ParameterizedType type2 = new ParameterizedTypeImpl(ProcessSyntheticAnnotatedType.class, new Type[] { annotatedType.getJavaClass() }, null);
  return new ProcessAnnotatedTypeEventResolvable(Sets.<Type> newHashSet(Object.class, type1, type2), annotatedType, discovery);
}
origin: weld/core

@Override
protected void preSpecialize() {
  super.preSpecialize();
  Class<?> superclass = getAnnotated().getJavaClass().getSuperclass();
  if (superclass == null || superclass.equals(Object.class)) {
    throw BeanLogger.LOG.specializingBeanMustExtendABean(this);
  }
}
origin: org.jboss.weld.se/weld-se

@Override
public void setAnnotatedType(AnnotatedType<X> type) {
  checkWithinObserverNotification();
  if (type == null) {
    throw BootstrapLogger.LOG.annotationTypeNull(this);
  }
  if (!this.originalAnnotatedType.getJavaClass().equals(type.getJavaClass())) {
    throw BootstrapLogger.LOG.annotatedTypeJavaClassMismatch(this.annotatedType.getJavaClass(), type.getJavaClass());
  }
  AnnotatedTypeValidator.validateAnnotatedType(type);
  BootstrapLogger.LOG.setAnnotatedTypeCalled(getReceiver(), annotatedType, type);
  this.annotatedType = type;
}
origin: org.jboss.weld.se/weld-se

public static <A extends Annotation> EnhancedAnnotation<A> create(SlimAnnotatedType<A> annotatedType, ClassTransformer classTransformer) {
  Class<A> annotationType = annotatedType.getJavaClass();
  Map<Class<? extends Annotation>, Annotation> annotationMap = new HashMap<Class<? extends Annotation>, Annotation>();
  annotationMap.putAll(buildAnnotationMap(annotatedType.getAnnotations()));
  annotationMap.putAll(buildAnnotationMap(classTransformer.getTypeStore().get(annotationType)));
  // Annotations and declared annotations are the same for annotation type
  return new EnhancedAnnotationImpl<A>(annotatedType, annotationMap, annotationMap, classTransformer);
}
origin: weld/core

public static <A extends Annotation> EnhancedAnnotation<A> create(SlimAnnotatedType<A> annotatedType, ClassTransformer classTransformer) {
  Class<A> annotationType = annotatedType.getJavaClass();
  Map<Class<? extends Annotation>, Annotation> annotationMap = new HashMap<Class<? extends Annotation>, Annotation>();
  annotationMap.putAll(buildAnnotationMap(annotatedType.getAnnotations()));
  annotationMap.putAll(buildAnnotationMap(classTransformer.getTypeStore().get(annotationType)));
  // Annotations and declared annotations are the same for annotation type
  return new EnhancedAnnotationImpl<A>(annotatedType, annotationMap, annotationMap, classTransformer);
}
origin: weld/core

public static <A extends Annotation> EnhancedAnnotation<A> create(SlimAnnotatedType<A> annotatedType, ClassTransformer classTransformer) {
  Class<A> annotationType = annotatedType.getJavaClass();
  Map<Class<? extends Annotation>, Annotation> annotationMap = new HashMap<Class<? extends Annotation>, Annotation>();
  annotationMap.putAll(buildAnnotationMap(annotatedType.getAnnotations()));
  annotationMap.putAll(buildAnnotationMap(classTransformer.getTypeStore().get(annotationType)));
  // Annotations and declared annotations are the same for annotation type
  return new EnhancedAnnotationImpl<A>(annotatedType, annotationMap, annotationMap, classTransformer);
}
origin: org.jboss.weld.se/weld-se

public static ProcessAnnotatedTypeEventResolvable forProcessAnnotatedType(SlimAnnotatedType<?> annotatedType, RequiredAnnotationDiscovery discovery) {
  ParameterizedType type = new ParameterizedTypeImpl(ProcessAnnotatedType.class, new Type[] { annotatedType.getJavaClass() }, null);
  return new ProcessAnnotatedTypeEventResolvable(Sets.<Type> newHashSet(Object.class, type), annotatedType, discovery);
}
origin: weld/core

public static <T> EnhancedAnnotatedType<T> of(SlimAnnotatedType<T> annotatedType, ClassTransformer classTransformer) {
  if (annotatedType instanceof BackedAnnotatedType<?>) {
    return new EnhancedAnnotatedTypeImpl<T>(annotatedType, buildAnnotationMap(annotatedType.getAnnotations()), buildAnnotationMap(classTransformer.getReflectionCache().getDeclaredAnnotations(annotatedType.getJavaClass())), classTransformer);
  } else {
    return new EnhancedAnnotatedTypeImpl<T>(annotatedType, buildAnnotationMap(annotatedType.getAnnotations()), buildAnnotationMap(annotatedType.getAnnotations()), classTransformer);
  }
}
origin: weld/core

public static <T> EnhancedAnnotatedType<T> of(SlimAnnotatedType<T> annotatedType, ClassTransformer classTransformer) {
  if (annotatedType instanceof BackedAnnotatedType<?>) {
    return new EnhancedAnnotatedTypeImpl<T>(annotatedType, buildAnnotationMap(annotatedType.getAnnotations()), buildAnnotationMap(classTransformer.getReflectionCache().getDeclaredAnnotations(annotatedType.getJavaClass())), classTransformer);
  } else {
    return new EnhancedAnnotatedTypeImpl<T>(annotatedType, buildAnnotationMap(annotatedType.getAnnotations()), buildAnnotationMap(annotatedType.getAnnotations()), classTransformer);
  }
}
origin: org.jboss.weld.se/weld-se

public static <T> EnhancedAnnotatedType<T> of(SlimAnnotatedType<T> annotatedType, ClassTransformer classTransformer) {
  if (annotatedType instanceof BackedAnnotatedType<?>) {
    return new EnhancedAnnotatedTypeImpl<T>(annotatedType, buildAnnotationMap(annotatedType.getAnnotations()), buildAnnotationMap(classTransformer.getReflectionCache().getDeclaredAnnotations(annotatedType.getJavaClass())), classTransformer);
  } else {
    return new EnhancedAnnotatedTypeImpl<T>(annotatedType, buildAnnotationMap(annotatedType.getAnnotations()), buildAnnotationMap(annotatedType.getAnnotations()), classTransformer);
  }
}
org.jboss.weld.annotated.slimSlimAnnotatedTypegetJavaClass

Popular methods of SlimAnnotatedType

  • getAnnotation
  • getBaseType
  • getIdentifier
  • isAnnotationPresent
  • getAnnotations
  • getConstructors
  • getFields
  • getMethods
  • getTypeClosure

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Menu (java.awt)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now