public class CruxRestProxyGenerator extends AbstractGenerator
{
@Override
protected AbstractProxyCreator createProxy(TreeLogger logger, GeneratorContext ctx, JClassType baseIntf) throws UnableToCompleteException
{
TargetRestService restService = baseIntf.getAnnotation(TargetRestService.class);
if (restService != null)
{
return new CruxRestProxyCreatorFromServerMetadata(logger, ctx, baseIntf);
}
return new CruxRestProxyCreatorFromClientMetadata(logger, ctx, baseIntf);