示例#1
0
文件: Tool.java 项目: DMMN1992/bbvfsm
 /**
  * Intercepts a type to simulate delegates.
  *
  * @param <T> the type
  * @param instance the instance to call
  */
 public static <T> T from(final T instance) {
   return CallInterceptorBuilder.build(instance);
 }
示例#2
0
文件: Tool.java 项目: DMMN1992/bbvfsm
 /**
  * Define parameters.
  *
  * @param type the type class
  * @param <T> the type
  */
 public static <T> T any(final Class<T> type) {
   return CallInterceptorBuilder.any(type);
 }