Package org.jboss.beans.info.spi

Examples of org.jboss.beans.info.spi.BeanInfo


    if (propertyInfo != null) {
      Object attachment = getManagedObject().getAttachment();
      if (attachment != null) {
        MetaValue metaValue = value;
        InstanceClassFactory icf = getMOFactory().getInstanceClassFactory(attachment.getClass());
        BeanInfo beanInfo = propertyInfo.getBeanInfo();
        icf.setValue(beanInfo, this, attachment, metaValue);
      }
    }
  }
View Full Code Here


      {
         Object attachment = getManagedObject().getAttachment();
         if (attachment != null)
         {
            InstanceClassFactory icf = getMOFactory().getInstanceClassFactory(attachment.getClass());
            BeanInfo beanInfo = propertyInfo.getBeanInfo();
            icf.setValue(beanInfo, this, attachment, value);
         }
      }
   }
View Full Code Here

         Object attachment = getManagedObject().getAttachment();
         if (attachment != null)
         {
            MetaValue metaValue = value;
            InstanceClassFactory icf = getMOFactory().getInstanceClassFactory(attachment.getClass());
            BeanInfo beanInfo = propertyInfo.getBeanInfo();
            icf.setValue(beanInfo, this, attachment, metaValue);
         }
      }
   }
View Full Code Here

  
   protected SimpleBean configureSimpleBean(String name, Object value) throws Throwable
   {
      Kernel kernel = bootstrap();
      KernelConfigurator configurator = kernel.getConfigurator();
      BeanInfo info = configurator.getBeanInfo(SimpleBean.class);
      SimpleBean bean = (SimpleBean) instantiate(configurator, info);

      AbstractPropertyMetaData metaData = new AbstractPropertyMetaData(name, value.toString());
     
      configure(configurator, bean, info, metaData);
View Full Code Here

  
   protected SimpleBean configureSimpleBean(String name, Object value, String type) throws Throwable
   {
      Kernel kernel = bootstrap();
      KernelConfigurator configurator = kernel.getConfigurator();
      BeanInfo info = configurator.getBeanInfo(SimpleBean.class);
      SimpleBean bean = (SimpleBean) instantiate(configurator, info);

      AbstractPropertyMetaData metaData = new AbstractPropertyMetaData(name, value.toString(), type);
      ((StringValueMetaData) metaData.getValue()).setConfigurator(configurator);
     
View Full Code Here

         KernelController controller = (KernelController) context.getController();
         Kernel kernel = controller.getKernel();
         KernelConfigurator configurator = kernel.getConfigurator();
        
         BeanMetaData metaData = context.getBeanMetaData();
         BeanInfo info = configurator.getBeanInfo(metaData);
         context.setBeanInfo(info);

         // add custom dependencies (e.g. AOP layer).
         DependencyInfo depends =   context.getDependencyInfo();
         List dependencies = info.getDependencies();
         if (dependencies != null)
         {
            Iterator it = dependencies.iterator();
            while (it.hasNext())
            {
View Full Code Here

         KernelController controller = (KernelController) context.getController();
         Kernel kernel = controller.getKernel();
         KernelConfigurator configurator = kernel.getConfigurator();

         BeanMetaData metaData = context.getBeanMetaData();
         BeanInfo info = context.getBeanInfo();
         final Joinpoint joinPoint = configurator.getConstructorJoinPoint(info, metaData.getConstructor(), metaData);
        
         Object object = dispatchJoinPoint(context, joinPoint);
         context.setTarget(object);
         try
View Full Code Here

         KernelController controller = (KernelController) context.getController();
         Kernel kernel = controller.getKernel();
         KernelConfigurator configurator = kernel.getConfigurator();

         Object object = context.getTarget();
         BeanInfo info = context.getBeanInfo();
         BeanMetaData metaData = context.getBeanMetaData();
         Set joinPoints = configurator.getPropertySetterJoinPoints(info, metaData);
         setAttributes(context, object, joinPoints, false);
      }
View Full Code Here

         KernelController controller = (KernelController) context.getController();
         Kernel kernel = controller.getKernel();
         KernelConfigurator configurator = kernel.getConfigurator();

         Object object = context.getTarget();
         BeanInfo info = context.getBeanInfo();
         BeanMetaData metaData = context.getBeanMetaData();
         try
         {
            Set joinPoints = configurator.getPropertyNullerJoinPoints(info, metaData);
            setAttributes(context, object, joinPoints, true);
View Full Code Here

         KernelController controller = (KernelController) context.getController();
         Kernel kernel = controller.getKernel();
         KernelConfigurator configurator = kernel.getConfigurator();

         Object target = context.getTarget();
         BeanInfo info = context.getBeanInfo();
         BeanMetaData metaData = context.getBeanMetaData();
         String method = getInstallMethod(context);
         List parameters = getInstallParameters(context);
         MethodJoinpoint joinpoint = null;
         try
View Full Code Here

TOP

Related Classes of org.jboss.beans.info.spi.BeanInfo

Copyright © 2018 www.massapicom. 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.