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

How to use
getDeclaringType
method
in
org.jboss.weld.annotated.enhanced.EnhancedAnnotatedField

Best Java code snippets using org.jboss.weld.annotated.enhanced.EnhancedAnnotatedField.getDeclaringType (Showing top 7 results out of 315)

origin: org.jboss.weld.se/weld-se

@Override
public EnhancedAnnotatedType<X> getDeclaringType() {
  return delegate().getDeclaringType();
}
origin: org.jboss.weld.se/weld-se

protected void checkProducerField(EnhancedAnnotatedField<T, ? super X> enhancedField) {
  if (getDeclaringBean() instanceof SessionBean<?> && !enhancedField.isStatic()) {
    throw BeanLogger.LOG.producerFieldOnSessionBeanMustBeStatic(enhancedField, enhancedField.getDeclaringType());
  }
  if (enhancedField.isAnnotationPresent(Inject.class)) {
    if (getDeclaringBean() != null) {
      throw BeanLogger.LOG.injectedFieldCannotBeProducer(enhancedField, getDeclaringBean());
    } else {
      throw BeanLogger.LOG.injectedFieldCannotBeProducer(enhancedField, enhancedField.getDeclaringType());
    }
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

protected void checkProducerField(EnhancedAnnotatedField<T, ? super X> enhancedField) {
  if (getDeclaringBean() instanceof SessionBean<?> && !enhancedField.isStatic()) {
    throw BeanLogger.LOG.producerFieldOnSessionBeanMustBeStatic(enhancedField, enhancedField.getDeclaringType());
  }
  if (enhancedField.isAnnotationPresent(Inject.class)) {
    if (getDeclaringBean() != null) {
      throw BeanLogger.LOG.injectedFieldCannotBeProducer(enhancedField, getDeclaringBean());
    } else {
      throw BeanLogger.LOG.injectedFieldCannotBeProducer(enhancedField, enhancedField.getDeclaringType());
    }
  }
}
origin: org.jboss.weld.se/weld-se-shaded

protected void checkProducerField(EnhancedAnnotatedField<T, ? super X> enhancedField) {
  if (getDeclaringBean() instanceof SessionBean<?> && !enhancedField.isStatic()) {
    throw BeanLogger.LOG.producerFieldOnSessionBeanMustBeStatic(enhancedField, enhancedField.getDeclaringType());
  }
  if (enhancedField.isAnnotationPresent(Inject.class)) {
    if (getDeclaringBean() != null) {
      throw BeanLogger.LOG.injectedFieldCannotBeProducer(enhancedField, getDeclaringBean());
    } else {
      throw BeanLogger.LOG.injectedFieldCannotBeProducer(enhancedField, enhancedField.getDeclaringType());
    }
  }
}
origin: weld/core

protected void checkProducerField(EnhancedAnnotatedField<T, ? super X> enhancedField) {
  if (getDeclaringBean() instanceof SessionBean<?> && !enhancedField.isStatic()) {
    throw BeanLogger.LOG.producerFieldOnSessionBeanMustBeStatic(enhancedField, enhancedField.getDeclaringType());
  }
  if (enhancedField.isAnnotationPresent(Inject.class)) {
    if (getDeclaringBean() != null) {
      throw BeanLogger.LOG.injectedFieldCannotBeProducer(enhancedField, getDeclaringBean());
    } else {
      throw BeanLogger.LOG.injectedFieldCannotBeProducer(enhancedField, enhancedField.getDeclaringType());
    }
  }
}
origin: weld/core

protected void checkProducerField(EnhancedAnnotatedField<T, ? super X> enhancedField) {
  if (getDeclaringBean() instanceof SessionBean<?> && !enhancedField.isStatic()) {
    throw BeanLogger.LOG.producerFieldOnSessionBeanMustBeStatic(enhancedField, enhancedField.getDeclaringType());
  }
  if (enhancedField.isAnnotationPresent(Inject.class)) {
    if (getDeclaringBean() != null) {
      throw BeanLogger.LOG.injectedFieldCannotBeProducer(enhancedField, getDeclaringBean());
    } else {
      throw BeanLogger.LOG.injectedFieldCannotBeProducer(enhancedField, enhancedField.getDeclaringType());
    }
  }
}
origin: weld/core

protected void checkProducerField(EnhancedAnnotatedField<T, ? super X> enhancedField) {
  if (getDeclaringBean() instanceof SessionBean<?> && !enhancedField.isStatic()) {
    throw BeanLogger.LOG.producerFieldOnSessionBeanMustBeStatic(enhancedField, enhancedField.getDeclaringType());
  }
  if (enhancedField.isAnnotationPresent(Inject.class)) {
    if (getDeclaringBean() != null) {
      throw BeanLogger.LOG.injectedFieldCannotBeProducer(enhancedField, getDeclaringBean());
    } else {
      throw BeanLogger.LOG.injectedFieldCannotBeProducer(enhancedField, enhancedField.getDeclaringType());
    }
  }
}
org.jboss.weld.annotated.enhancedEnhancedAnnotatedFieldgetDeclaringType

Popular methods of EnhancedAnnotatedField

  • getAnnotations
  • getBaseType
  • getJavaClass
  • getJavaMember
  • getName
  • getPropertyName
    Gets the property name of the field
  • getQualifiers
  • getTypeClosure
  • isAnnotationPresent
  • isFinal
  • isPublic
  • isStatic
  • isPublic,
  • isStatic,
  • slim,
  • isTransient

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Kernel (java.awt.image)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JList (javax.swing)
  • From CI to AI: The AI layer in your organization
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