Package org.sonatype.sisu.siesta.client.ClientBuilder.Target

Examples of org.sonatype.sisu.siesta.client.ClientBuilder.Target.Factory


    checkNotNull(context, "context cannot be null");

    if (!type.isInterface()) {
      return null;
    }
    final Factory factory = (Factory) context.get(Factory.class);
    if (factory == null) {
      return null;
    }
    if (hasPathAnnotation(type)) {
      return factory.build(type);
    }
    for (final Method method : type.getMethods()) {
      if (method.getAnnotation(Path.class) != null) {
        return factory.build(type);
      }
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.sonatype.sisu.siesta.client.ClientBuilder.Target.Factory

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.