Package com.github.zhongl.hs4j.kit.annotations.HandlerSocket

Examples of com.github.zhongl.hs4j.kit.annotations.HandlerSocket.Action


  @Override
  protected InvocationHandler createInvocationHandlerWith(Method method, String database, String table) {
    final HandlerSocket handlerSocket = method.getAnnotation(HandlerSocket.class);
    if ((handlerSocket == null)) return null;
    final Action action = handlerSocket.value();
    if (action == FIND) assertMethodReturnType(method, ResultIterator.class);
    else assertMethodReturnType(method, void.class);
    final IndexSession session = getOrCreateIndexSessionWith(method, database, table);
    return action.createInvocationHandlerWith(method, session);
  }
View Full Code Here


  @Override
  protected InvocationHandler createInvocationHandlerWith(Method method, String database, String table) {
    final HandlerSocket handlerSocket = method.getAnnotation(HandlerSocket.class);
    if ((handlerSocket == null)) return null;
    final Action action = handlerSocket.value();
    if (action == FIND) assertMethodReturnType(method, ResultIterator.class);
    else assertMethodReturnType(method, void.class);
    final IndexSession session = getOrCreateIndexSessionWith(method, database, table);
    return action.createInvocationHandlerWith(method, session);
  }
View Full Code Here

TOP

Related Classes of com.github.zhongl.hs4j.kit.annotations.HandlerSocket.Action

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.