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

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


         String newName = "ScopedAlias_" + sequence + "_" + name;
     
         BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(bean);
        
         //Set the alias to the original name
         builder.addAnnotation(new AliasesImpl(name));
        
         //Set the domain name
         builder.addAnnotation(scopeAnnotation);
     
         //set the new name used by the controller for managing beans
View Full Code Here


        
         //Set the alias to the original name
         builder.addAnnotation(new AliasesImpl(name));
        
         //Set the domain name
         builder.addAnnotation(scopeAnnotation);
     
         //set the new name used by the controller for managing beans
         builder.setName(newName);
      }
   }
View Full Code Here

      if (log.isTraceEnabled())
         log.trace("Exposing " + context.getName() + "." + property + " (" + exposedInterface.getName() + ") via objectName: " + name);

      String id = createId(context, info, jmx);
      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(id, exposedInterface.getName());
      builder.addAnnotation(wrapJMX(jmx, name, exposedInterface));
      builder.setConstructorValue(new AbstractDependencyValueMetaData(context.getName(), property));

      KernelController controller = (KernelController)context.getController();
      controller.install(builder.getBeanMetaData());
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.