Tabnine Logo
BeanMetaData.getAnnotations
Code IndexAdd Tabnine to your IDE (free)

How to use
getAnnotations
method
in
org.jboss.beans.metadata.spi.BeanMetaData

Best Java code snippets using org.jboss.beans.metadata.spi.BeanMetaData.getAnnotations (Showing top 3 results out of 315)

origin: org.jboss.snowdrop/snowdrop-facade

  public boolean accepts(ControllerContext context) {
    Set<AnnotationMetaData> annotationMetaDataSet = ((KernelControllerContext) context).getBeanMetaData().getAnnotations();
    for (AnnotationMetaData annotationMetaData : annotationMetaDataSet) {
      if (annotationType.isAssignableFrom(annotationMetaData.getAnnotationInstance().annotationType())) {
        return true;
      }
    }
    return false;
  }
});
origin: org.jboss.microcontainer/jboss-kernel

/**
* Update class annotations
* 
* @param mutable the mutable metadata
* @param context the context
* @param add true for add, false for remove
*/
private void updateClassAnnotations(MutableMetaDataLoader mutable, KernelControllerContext context, boolean add)
{
 BeanMetaData beanMetaData = context.getBeanMetaData();
 if (beanMetaData != null)
 {
   ClassLoader cl;
   try
   {
    cl = Configurator.getClassLoader(beanMetaData);
   }
   catch(Throwable t)
   {
    throw new RuntimeException("Error getting classloader for " + beanMetaData.getName(), t);
   }
   updateAnnotations(cl, mutable, beanMetaData.getAnnotations(), add);
 }
}
origin: org.jboss.microcontainer/jboss-kernel

Set<AnnotationMetaData> annotationsBMD = bmd.getAnnotations();
if (annotationsBMD == null)
org.jboss.beans.metadata.spiBeanMetaDatagetAnnotations

Javadoc

Get the annotations

Popular methods of BeanMetaData

  • getName
    Get the name
  • getDepends
    Get what this bean depends.
  • getProperties
    Get the properties.
  • getSupplies
    Get what this bean supplies.
  • getBean
    Get the bean.
  • getClassLoader
    Get the bean ClassLoader
  • getConstructor
    Get the constructor
  • getDemands
    Get what this bean demands.
  • setClassLoader
    Set the bean ClassLoader
  • clone
  • describeVisit
  • getAccessMode
    Get the access mode
  • describeVisit,
  • getAccessMode,
  • getAliases,
  • getCreate,
  • getDestroy,
  • getErrorHandlingMode,
  • getInstalls,
  • getMode,
  • getRelated

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Permission (java.security)
    Legacy security code; do not use.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Collectors (java.util.stream)
  • JCheckBox (javax.swing)
  • Best IntelliJ plugins
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