Package org.jboss.joinpoint.spi

Examples of org.jboss.joinpoint.spi.JoinpointFactory


      assertEquals("ping", joinpoint.dispatch());
   }

   public void testObjectMethodInvoke() throws Throwable
   {
      JoinpointFactory jpf = getJointpointFactory(SimpleBean.class);
      SimpleBean bean = new SimpleBean();
      Joinpoint joinpoint = Config.getMethodJoinpoint(bean, jpf, "toString", new String[0], new Object[0]);
      assertEquals(bean.toString(), joinpoint.dispatch());
   }
View Full Code Here


/*     */
/*     */   public static ConstructorJoinpoint findConstructor(boolean trace, BeanInfo info, ConstructorMetaData metaData)
/*     */     throws Exception
/*     */   {
/* 221 */     ConstructorInfo cinfo = resolveConstructor(trace, info, metaData);
/* 222 */     JoinpointFactory jpf = info.getJoinpointFactory();
/* 223 */     return jpf.getConstructorJoinpoint(cinfo);
/*     */   }
View Full Code Here

/* 383 */       log.trace("Get property setter join point info=" + info);
/*     */     }
/* 385 */     if (info == null) {
/* 386 */       throw new IllegalArgumentException("Null property info");
/*     */     }
/* 388 */     JoinpointFactory jpf = info.getBeanInfo().getJoinpointFactory();
/* 389 */     MethodInfo minfo = info.getGetter();
/* 390 */     if (minfo == null)
/* 391 */       throw new IllegalArgumentException("Property is write only: " + info);
/* 392 */     return getMethodJoinpoint(null, jpf, minfo.getName(), null, null);
/*     */   }
View Full Code Here

/* 509 */     if (metaData == null) {
/* 510 */       throw new IllegalArgumentException("Null value metadata");
/*     */     }
/* 512 */     TypeInfo type = info.getType();
/* 513 */     Object value = metaData.getValue(type, cl);
/* 514 */     JoinpointFactory jpf = info.getBeanInfo().getJoinpointFactory();
/* 515 */     MethodInfo minfo = info.getSetter();
/* 516 */     if (minfo == null)
/* 517 */       throw new IllegalArgumentException("No setter configured for property: " + info);
/* 518 */     String[] parameterTypes = getParameterTypes(trace, minfo.getParameterTypes());
/* 519 */     return getMethodJoinpoint(null, jpf, minfo.getName(), parameterTypes, new Object[] { value });
View Full Code Here

/* 661 */       log.trace("Get property nuller join point info=" + info + " metaData=" + metaData);
/*     */     }
/* 663 */     if (info == null) {
/* 664 */       throw new IllegalArgumentException("Null property info");
/*     */     }
/* 666 */     JoinpointFactory jpf = info.getBeanInfo().getJoinpointFactory();
/* 667 */     MethodInfo minfo = info.getSetter();
/* 668 */     if (minfo == null)
/* 669 */       throw new IllegalArgumentException("Property is read only: " + info);
/* 670 */     String[] parameterTypes = getParameterTypes(trace, minfo.getParameterTypes());
/* 671 */     return getMethodJoinpoint(null, jpf, minfo.getName(), parameterTypes, new Object[] { null });
View Full Code Here

/* 774 */     if (name == null) {
/* 775 */       throw new IllegalArgumentException("Null name");
/*     */     }
/* 777 */     String[] paramTypes = getParameterTypes(trace, parameters);
/* 778 */     MethodInfo minfo = findMethodInfo(info.getClassInfo(), name, paramTypes, isStatic, isPublic);
/* 779 */     JoinpointFactory jpf = info.getJoinpointFactory();
/* 780 */     MethodJoinpoint joinPoint = jpf.getMethodJoinpoint(minfo);
/*     */
/* 783 */     if (minfo != null)
/*     */     {
/* 785 */       TypeInfo[] pinfos = minfo.getParameterTypes();
/* 786 */       Object[] params = getParameters(trace, cl, pinfos, parameters);
View Full Code Here

TOP

Related Classes of org.jboss.joinpoint.spi.JoinpointFactory

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.