Examples of TargettedJoinpoint


Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

      if (propertys != null && propertys.isEmpty() == false)
      {
         for (Iterator i = metaData.getProperties().iterator(); i.hasNext();)
         {
            PropertyMetaData property = (PropertyMetaData) i.next();
            TargettedJoinpoint joinPoint = getPropertyNullerJoinPoint(info, property);
            result.add(joinPoint);
         }
      }
      return result;
   }
View Full Code Here

Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

         for (Iterator i = properties.entrySet().iterator(); i.hasNext();)
         {
            Map.Entry entry = (Map.Entry) i.next();
            String property = (String) entry.getKey();
            ValueMetaData vmd = (ValueMetaData) entry.getValue();
            TargettedJoinpoint jp = configurator.getPropertySetterJoinPoint(info, property, cl, vmd);
            jp.setTarget(result);
            jp.dispatch();
         }
      }
      invokeLifecycle("create", create, info, cl, result);
      invokeLifecycle("start", start, info, cl, result);
      return result;
View Full Code Here

Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

      Object result = context.getTarget();
      if (result != null && property != null)
      {
         KernelConfigurator configurator = controller.getKernel().getConfigurator();
         BeanInfo beanInfo = configurator.getBeanInfo(result.getClass());
         TargettedJoinpoint joinpoint = configurator.getPropertyGetterJoinPoint(beanInfo, property);
         joinpoint.setTarget(result);
         return joinpoint.dispatch();
      }
      return result;
   }
View Full Code Here

Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

      if (propertyName != null && beanName != null)
      {
         try
         {
            KernelControllerContext context = (KernelControllerContext) controller.getContext(beanName, ControllerState.INSTANTIATED);
            TargettedJoinpoint joinpoint = configurator.getPropertyGetterJoinPoint(context.getBeanInfo(), propertyName);
            joinpoint.setTarget(context.getTarget());
            result = joinpoint.dispatch();
         }
         catch (Throwable t)
         {
            log.warn("Exception in preinstantiated lookup: " + t);
         }
View Full Code Here

Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

      {
         for (Map.Entry<String, ValueMetaData> entry : properties.entrySet())
         {
            String property = entry.getKey();
            ValueMetaData vmd = entry.getValue();
            TargettedJoinpoint jp = configurator.getPropertySetterJoinPoint(info, property, cl, vmd);
            jp.setTarget(result);
            jp.dispatch();
         }
      }
      invokeLifecycle("create", create, info, cl, result);
      invokeLifecycle("start", start, info, cl, result);
      return result;
View Full Code Here

Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

   public static void configure(boolean trace, Object object, PropertyInfo info, ClassLoader cl, PropertyMetaData metaData) throws Throwable
   {
      if (trace)
         log.trace("Configuring info=" + info + " metaData=" + metaData);

      TargettedJoinpoint joinPoint = getPropertySetterJoinPoint(trace, info, cl, metaData.getValue());
      joinPoint.setTarget(object);

      if (trace)
         log.trace("Setting property " + joinPoint);

      joinPoint.dispatch();
   }
View Full Code Here

Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

         ClassLoader cl = getClassLoader(metaData);

         for (Iterator<PropertyMetaData> i = metaData.getProperties().iterator(); i.hasNext();)
         {
            PropertyMetaData property = i.next();
            TargettedJoinpoint joinPoint = getPropertySetterJoinPoint(trace, info, cl, property);
            result.add(joinPoint);
         }
      }

      return result;
View Full Code Here

Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

   public static void unconfigure(boolean trace, Object object, PropertyInfo info, PropertyMetaData metaData) throws Throwable
   {
      if (trace)
         log.trace("Unconfiguring info=" + info + " metaData=" + metaData);

      TargettedJoinpoint joinPoint = getPropertyNullerJoinPoint(info, metaData);
      joinPoint.setTarget(object);

      if (trace)
         log.trace("Unsetting property " + joinPoint);

      joinPoint.dispatch();
   }
View Full Code Here

Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

      if (propertys != null && propertys.isEmpty() == false)
      {
         for (Iterator<PropertyMetaData> i = metaData.getProperties().iterator(); i.hasNext();)
         {
            PropertyMetaData property = i.next();
            TargettedJoinpoint joinPoint = getPropertyNullerJoinPoint(info, property);
            result.add(joinPoint);
         }
      }
      return result;
   }
View Full Code Here

Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

      {
         for (Map.Entry<String, ValueMetaData> entry : properties.entrySet())
         {
            String property = entry.getKey();
            ValueMetaData vmd = entry.getValue();
            TargettedJoinpoint jp = configurator.getPropertySetterJoinPoint(info, property, cl, vmd);
            jp.setTarget(result);
            jp.dispatch();
         }
      }
      invokeLifecycle("create", create, info, cl, result);
      invokeLifecycle("start", start, info, cl, result);
      return result;
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.