Examples of TargettedJoinpoint


Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

         {
            boolean trace = log.isTraceEnabled();
           
            for (Iterator i = joinPoints.iterator(); i.hasNext();)
            {
               TargettedJoinpoint joinPoint = (TargettedJoinpoint) i.next();
               joinPoint.setTarget(target);
               try
               {
                  dispatchJoinPoint(context, joinPoint);
               }
               catch (Throwable t)
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

   protected void configure(KernelConfigurator configurator, Object bean, BeanInfo info, BeanMetaData metaData) throws Throwable
   {
      Set joinPoints = configurator.getPropertySetterJoinPoints(info, metaData);
      for (Iterator i = joinPoints.iterator(); i.hasNext();)
      {
         TargettedJoinpoint joinPoint = (TargettedJoinpoint) i.next();
         joinPoint.setTarget(bean);
         joinPoint.dispatch();
      }
   }
View Full Code Here

Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

   }
  
   protected void configure(KernelConfigurator configurator, Object bean, BeanInfo info, PropertyMetaData metaData) throws Throwable
   {
      ClassLoader cl = getClass().getClassLoader();
      TargettedJoinpoint joinPoint = configurator.getPropertySetterJoinPoint(info, cl, metaData);
      joinPoint.setTarget(bean);
      joinPoint.dispatch();
   }
View Full Code Here

Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

   protected void unconfigure(KernelConfigurator configurator, Object bean, BeanInfo info, BeanMetaData metaData) throws Throwable
   {
      Set joinPoints = configurator.getPropertyNullerJoinPoints(info, metaData);
      for (Iterator i = joinPoints.iterator(); i.hasNext();)
      {
         TargettedJoinpoint joinPoint = (TargettedJoinpoint) i.next();
         joinPoint.setTarget(bean);
         try
         {
            joinPoint.dispatch();
         }
         catch (Throwable ignored)
         {
         }
      }
View Full Code Here

Examples of org.jboss.joinpoint.spi.TargettedJoinpoint

      KernelRegistry registry = kernel.getRegistry();
      KernelConfig config = kernel.getConfig();
      registry.registerEntry("Name1", makeEntry("A string"));
      registry.registerEntry("Name2", makeEntry("B string"));
      KernelBus bus = kernel.getBus();
      TargettedJoinpoint joinPoint = getMethodJoinpoint(config, String.class, "toString");
      Object result1 = bus.invoke("Name1", joinPoint);
      Object result2 = bus.invoke("Name2", joinPoint);
      assertEquals("A string", result1);
      assertEquals("B string", result2);
   }
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

   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 i = metaData.getProperties().iterator(); i.hasNext();)
         {
            PropertyMetaData property = (PropertyMetaData) 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
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.