Package org.jboss.beans.metadata.spi.builder

Examples of org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder.createInject()


      // Create the classloader
      builder = BeanMetaDataBuilder.createBuilder(contextName, ClassLoader.class.getName());
      builder.setNoClassLoader();
      builder.setFactory(moduleName);
      builder.setFactoryMethod("registerClassLoaderPolicy");
      builder.addConstructorParameter(ClassLoaderSystem.class.getName(), builder.createInject(classLoaderSystemName));
      BeanMetaData classLoader = builder.getBeanMetaData();
     
      return Arrays.asList(classLoader, module);
   }
}
View Full Code Here


   }

   protected BeanMetaDataFactory getConstructorTester()
   {
      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder("Constructor", SimpleConstructorTester.class.getName());
      builder.addConstructorParameter(Controller.class.getName(), builder.createInject(KernelConstants.KERNEL_CONTROLLER_NAME));
      return builder.getBeanMetaDataFactory();
   }

   protected BeanMetaDataFactory getInjectionTester()
   {
View Full Code Here

   }

   protected BeanMetaDataFactory getInjectionTester()
   {
      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder("Injection", SimpleInjectionTester.class.getName());
      builder.addPropertyMetaData("controller", builder.createInject(KernelConstants.KERNEL_CONTROLLER_NAME));
      return builder.getBeanMetaDataFactory();
   }

   protected BeanMetaDataFactory getStartTester()
   {
View Full Code Here

   }

   protected BeanMetaDataFactory getStartTester()
   {
      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder("Start", SimpleStartTester.class.getName());
      builder.setStart("onStart").addStartParameter(Controller.class.getName(), builder.createInject(KernelConstants.KERNEL_CONTROLLER_NAME));     
      return builder.getBeanMetaDataFactory();
   }

   protected BeanMetaDataFactory getAliasTester()
   {
View Full Code Here

   protected BeanMetaDataFactory getAliasTester()
   {
      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder("SomeRandomName", SimpleAliasTester.class.getName());
      builder.setFactoryMethod("factory");
      builder.addPropertyMetaData("controller", builder.createInject(KernelConstants.KERNEL_CONTROLLER_NAME));
      builder.addAnnotation(new AliasesImpl("Alias"));
      return builder.getBeanMetaDataFactory();
   }

   @SuppressWarnings({"ClassExplicitlyAnnotation"})
View Full Code Here

         {
            String entryName = getName() + "$" + i++;
            BeanMetaDataBuilder entryBuilder = BeanMetaDataBuilder.createBuilder(entryName, CFlowStackEntry.class.getName());
            entryBuilder.addPropertyMetaData("called", entry.getCalled());
            entryBuilder.addPropertyMetaData("expr", entry.getExpr());
            ValueMetaData injectEntry = entryBuilder.createInject(entryName);
            entryList.add(injectEntry);
            result.add(entryBuilder.getBeanMetaData());
         }
      }
View Full Code Here

      {
         domainBuilder.addPropertyMetaData("inheritBindings", inheritBindings);
      }
      if (extendz != null)
      {
         ValueMetaData value = domainBuilder.createInject(extendz);
         domainBuilder.addPropertyMetaData("parent", value);
      }
     
      setAspectManagerProperty(domainBuilder);
      result.add(domainBuilder.getBeanMetaData());
View Full Code Here

         for (BaseInterceptorData interceptor : interceptors)
         {
            String intName = name + "$" + i++;
            BeanMetaDataBuilder interceptorBuilder = BeanMetaDataBuilder.createBuilder(intName, interceptor.getBeanClassName());
            setAspectManagerProperty(interceptorBuilder);
            ValueMetaData injectBinding = interceptorBuilder.createInject(name, null, null, ControllerState.INSTANTIATED);
            interceptorBuilder.addPropertyMetaData("binding", injectBinding);
           
            if (interceptor instanceof AdviceOrInterceptorData)
            {
               ValueMetaData injectAspect = interceptorBuilder.createInject(interceptor.getRefName());
View Full Code Here

            ValueMetaData injectBinding = interceptorBuilder.createInject(name, null, null, ControllerState.INSTANTIATED);
            interceptorBuilder.addPropertyMetaData("binding", injectBinding);
           
            if (interceptor instanceof AdviceOrInterceptorData)
            {
               ValueMetaData injectAspect = interceptorBuilder.createInject(interceptor.getRefName());
               interceptorBuilder.addPropertyMetaData("aspect", injectAspect);
               if (((AdviceOrInterceptorData)interceptor).getAdviceMethod() != null)
               {
                  interceptorBuilder.addPropertyMetaData("aspectMethod", ((AdviceOrInterceptorData)interceptor).getAdviceMethod());
               }
View Full Code Here

               }
               interceptorBuilder.addPropertyMetaData("type", ((AdviceOrInterceptorData)interceptor).getType());
            }
            else
            {
               ValueMetaData injectStack = interceptorBuilder.createInject(interceptor.getRefName());
               interceptorBuilder.addPropertyMetaData("stack", injectStack);
            }
            result.add(interceptorBuilder.getBeanMetaData());
            ValueMetaData injectInterceptor = bindingBuilder.createInject(intName);
            bindingInterceptors.add(injectInterceptor);
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.