Package net.sourceforge.javautil.common.proxy.pojo

Examples of net.sourceforge.javautil.common.proxy.pojo.Pojo


  public Object getTarget() { return target; }

  public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
    if (method.getDeclaringClass() == Object.class) return method.invoke(target, args);
   
    Pojo pojo = method.getAnnotation(Pojo.class);
    ClassMethod cm = null;
    Object returnValue = null;
    if (pojo != null) {
      cm = targetType.getMethod(pojo.value());
    } else {
      cm = targetType.findMethod(method.getName(), args);
    }
    if (cm != null) returnValue = cm.invoke(target, args);
    else if (this.allEventHandler != null && method.getAnnotation(CollectionProxyCondition.class) == null) {
View Full Code Here


    this.defaultTarget = defaultTarget;
  }

  public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
    if (!cache.containsKey(method)) {
      Pojo pojo = method.getAnnotation(Pojo.class);
      cache.put(method, pojo == null ? null : targetDesc.getMethod(pojo.value()));
    }
   
    ClassMethod cm = cache.get(method);
    if (cm != null) {
      Object[] modifiedArguments = null;
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.common.proxy.pojo.Pojo

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.