Package org.jboss.metadata.spi.scope

Examples of org.jboss.metadata.spi.scope.ScopeFactory.create()


            // WeakHashMap.put(clazz.getClassLoader(), new SoftMap())
            // SoftValueHashMap.put(clazz.getName(), instance)
            // If this is done, it should be moved to a common helper class
            // that does generic construction from a factory given on the meta annotations
            ScopeFactory scopeFactory = scopeFactoryLookup.value().newInstance();
            return scopeFactory.create(annotation);
         }
         else
         {
            // todo - annotation.value();
            return createScopeKey(annotation.getClass().getSimpleName(), annotation.toString());
View Full Code Here


            {
               if (annotation.annotationType().isAnnotationPresent(ScopeFactoryLookup.class))
               {
                  ScopeFactoryLookup sfl = annotation.annotationType().getAnnotation(ScopeFactoryLookup.class);
                  ScopeFactory scf = getScopeFactory(sfl.value());
                  Scope scope = scf.create(annotation);
                  scopes.add(scope);
               }
            }
            if (scopes.size() > 0)
            {
View Full Code Here

            {
               if (annotation.annotationType().isAnnotationPresent(ScopeFactoryLookup.class))
               {
                  ScopeFactoryLookup sfl = annotation.annotationType().getAnnotation(ScopeFactoryLookup.class);
                  ScopeFactory scf = getScopeFactory(sfl.value());
                  Scope scope = scf.create(annotation);
                  scopes.add(scope);
               }
            }
            if (scopes.size() > 0)
            {
View Full Code Here

            // WeakHashMap.put(clazz.getClassLoader(), new SoftMap())
            // SoftValueHashMap.put(clazz.getName(), instance)
            // If this is done, it should be moved to a common helper class
            // that does generic construction from a factory given on the meta annotations
            ScopeFactory scopeFactory = scopeFactoryLookup.value().newInstance();
            return scopeFactory.create(annotation);
         }
         else
         {
            // todo - annotation.value();
            return createScopeKey(annotation.getClass().getSimpleName(), annotation.toString());
View Full Code Here

            // WeakHashMap.put(clazz.getClassLoader(), new SoftMap())
            // SoftValueHashMap.put(clazz.getName(), instance)
            // If this is done, it should be moved to a common helper class
            // that does generic construction from a factory given on the meta annotations
            ScopeFactory scopeFactory = scopeFactoryLookup.value().newInstance();
            return scopeFactory.create(annotation);
         }
         else
         {
            // todo - annotation.value();
            return createScopeKey(annotation.getClass().getSimpleName(), annotation.toString());
View Full Code Here

/*  63 */       Annotation annotation = (Annotation)AnnotationCreator.createAnnotation(this.scope, cl);
/*  64 */       ScopeFactoryLookup scopeFactoryLookup = (ScopeFactoryLookup)annotation.getClass().getAnnotation(ScopeFactoryLookup.class);
/*  65 */       if (scopeFactoryLookup != null)
/*     */       {
/*  74 */         ScopeFactory scopeFactory = (ScopeFactory)scopeFactoryLookup.value().newInstance();
/*  75 */         return scopeFactory.create(annotation);
/*     */       }
/*     */
/*  80 */       return createScopeKey(annotation.getClass().getSimpleName(), annotation.toString());
/*     */     }
/*     */
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.