Package reactor.core.dynamic.annotation

Examples of reactor.core.dynamic.annotation.On


public class SimpleMethodSelectorResolver implements MethodSelectorResolver {

  @Override
  public Selector apply(Method method) {
    String sel;
    On onAnno = AnnotationUtils.find(method, On.class);
    if (null != onAnno) {
      sel = onAnno.value();
    } else {
      sel = methodNameToSelectorName(method.getName());
    }

    return (!"".equals(sel) ? new ObjectSelector<String>(sel) : null);
View Full Code Here

TOP

Related Classes of reactor.core.dynamic.annotation.On

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.