Examples of AnnotationScanner


Examples of com.bazaarvoice.snitch.scanner.AnnotationScanner

    private final VariableRegistry _variableRegistry;
    private final FormatterRegistry _formatterRegistry;

    @SuppressWarnings("unchecked")
    private Snitch(Configuration config) throws Exception {
        AnnotationScanner annotationScanner;
        List<String> packagesToScan = config.getPackagesToScan();
        if (packagesToScan != null && !packagesToScan.isEmpty()) {
            String[] packages = packagesToScan.toArray(new String[packagesToScan.size()]);
            annotationScanner = new ClassPathAnnotationScanner(packages);
        } else {
View Full Code Here

Examples of me.prettyprint.hom.annotations.AnnotationScanner

public class AnnotationScannerTest {

  @Test
  public void testScanForAnnotation() {
    AnnotationScanner scanner = new AnnotationScanner();
    Set<Class<?>> classSet = scanner.scan("me.prettyprint.hom.beans", javax.persistence.Entity.class);

    int count = 0;
    assertTrue(classSet.contains(MyTestBean.class));
    count++;
    assertTrue(classSet.contains(MyBlueTestBean.class));
View Full Code Here

Examples of me.prettyprint.hom.annotations.AnnotationScanner

    }
    open = true;
  }

  private void initializeClasspath(String classpathPrefix) {
    AnnotationScanner scanner = new AnnotationScanner();
    Set<Class<?>> classSet = scanner.scan(classpathPrefix, Entity.class);
    for (Class<?> clazz : classSet) {
      cacheMgr.initializeCacheForClass(clazz);
    }
  }
View Full Code Here

Examples of org.apache.aries.jpa.container.annotation.impl.AnnotationScanner

  public List<String> getManagedClassNames() {
    List<String> classes = (List<String>) unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MANAGED_CLASSES);
    if(classes == null)
      classes = new ArrayList<String>();
    if(!!!internalExcludeUnlistedClasses()) {
      AnnotationScanner scanner = AnnotationScannerFactory.getAnnotationScanner();
      if(scanner != null)
        classes.addAll(scanner.findJPAAnnotatedClasses(bundle));
    }
   
    return Collections.unmodifiableList(classes);
  }
View Full Code Here

Examples of org.jboss.jca.common.spi.annotations.repository.AnnotationScanner

         // Annotation scanning
         if (scanArchive(connector))
         {
            Annotations annotator = new Annotations();
            AnnotationScanner scanner = AnnotationScannerFactory.getAnnotationScanner();
            AnnotationRepository repository = scanner.scan(cl.getURLs(), cl);
            connector = annotator.merge(connector, repository, cl);
         }

         if (connector == null)
         {
View Full Code Here

Examples of org.jboss.jca.common.spi.annotations.repository.AnnotationScanner

         // Annotation scanning
         if (scanArchive(connector))
         {
            Annotations annotator = new Annotations();
            AnnotationScanner scanner = AnnotationScannerFactory.getAnnotationScanner();
            AnnotationRepository repository = scanner.scan(cl.getURLs(), cl);
            connector = annotator.merge(connector, repository, cl);
         }

         if (connector == null)
         {
View Full Code Here

Examples of org.jboss.jca.common.spi.annotations.repository.AnnotationScanner

         // Annotation scanning
         if (scanArchive(connector))
         {
            Annotations annotator = new Annotations();
            AnnotationScanner scanner = AnnotationScannerFactory.getAnnotationScanner();
            AnnotationRepository repository = scanner.scan(cl.getURLs(), cl);
            connector = annotator.merge(connector, repository, cl);
         }

         if (connector == null)
         {
View Full Code Here

Examples of org.jboss.papaki.AnnotationScanner

   public ConnectorMetaData scan(ConnectorMetaData cmd, URL[] urls, ClassLoader cl) throws Exception
   {
      // Process annotations
      if (cmd == null || cmd.is16())
      {
         AnnotationScanner annotationScanner =
            AnnotationScannerFactory.getStrategy(AnnotationScannerFactory.JAVASSIST_INPUT_STREAM);
         annotationScanner.configure().constructorLevel(false).parameterLevel(false);
         AnnotationRepository annotationRepository = annotationScanner.scan(urls, cl);

         boolean isMetadataComplete = false;
         if (cmd != null && cmd instanceof JCA16Base)
         {
            JCA16Base jmd = (JCA16Base)cmd;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.