Action.java :  » Google-tech » jrest4guice » org » jrest4guice » dao » actions » Java Open Source

Java Open Source » Google tech » jrest4guice 
jrest4guice » org » jrest4guice » dao » actions » Action.java
package org.jrest4guice.dao.actions;

import java.lang.reflect.Method;

/**
 * DAO 
 * @author <a href="mailto:gzyangfan@gmail.com">gzYangfan</a>
 * @param <A> 
 * @param <T> 
 */
public interface Action<A, T extends ActionContext> {

  Object execute(Method method, Object[] parameters);

  void setAnnotation(A annotation);

  A getAnnotation();

  Class<A> getAnnotationClass();

  void setContext(T context);

  T getContext();

  Class<T> getContextClass();

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.