Class AnnotationUtils
- java.lang.Object
-
- org.soulwing.prospecto.jaxrs.runtime.discovery.AnnotationUtils
-
public class AnnotationUtils extends Object
Static utility methods for creating annotation instances.- Author:
- Carl Harris
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotationUtils.GETLiteralstatic classAnnotationUtils.ModelPathSpecLiteralstatic classAnnotationUtils.ModelPathSpecsLiteralstatic classAnnotationUtils.PathLiteralstatic classAnnotationUtils.TemplateResolverLiteral
-
Constructor Summary
Constructors Constructor Description AnnotationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.ws.rs.GEThttpGETAnnotation()Creates a new instance ofGET.static org.soulwing.prospecto.jaxrs.api.ModelPathSpecmodelPathSpecAnnotation(boolean descriptor, Class<?>... value)Creates a new instance ofModelPathSpec.static org.soulwing.prospecto.jaxrs.api.ModelPathSpecmodelPathSpecAnnotation(Class<?>... value)Creates a new instance ofModelPathSpec.static org.soulwing.prospecto.jaxrs.api.ModelPathSpecsmodelPathSpecsAnnotation(org.soulwing.prospecto.jaxrs.api.ModelPathSpec... value)Creates a new instance ofModelPathSpecs.static javax.ws.rs.PathpathAnnotation(String value)Creates a new instance ofPath.static org.soulwing.prospecto.jaxrs.api.TemplateResolvertemplateResolverAnnotation(Class<? extends org.soulwing.prospecto.jaxrs.api.PathTemplateResolver> value)Creates a new instance ofTemplateResolver.
-
-
-
Method Detail
-
pathAnnotation
public static javax.ws.rs.Path pathAnnotation(String value)
Creates a new instance ofPath.- Parameters:
value- path for value attribute- Returns:
- annotation instance
-
modelPathSpecAnnotation
public static org.soulwing.prospecto.jaxrs.api.ModelPathSpec modelPathSpecAnnotation(Class<?>... value)
Creates a new instance ofModelPathSpec.- Parameters:
value- class array for value attribute- Returns:
- annotation instance
-
modelPathSpecAnnotation
public static org.soulwing.prospecto.jaxrs.api.ModelPathSpec modelPathSpecAnnotation(boolean descriptor, Class<?>... value)Creates a new instance ofModelPathSpec.- Parameters:
descriptor- descriptor flag valuevalue- class array for value attribute- Returns:
- annotation instance
-
modelPathSpecsAnnotation
public static org.soulwing.prospecto.jaxrs.api.ModelPathSpecs modelPathSpecsAnnotation(org.soulwing.prospecto.jaxrs.api.ModelPathSpec... value)
Creates a new instance ofModelPathSpecs.- Parameters:
value- class array for value attribute- Returns:
- annotation instance
-
templateResolverAnnotation
public static org.soulwing.prospecto.jaxrs.api.TemplateResolver templateResolverAnnotation(Class<? extends org.soulwing.prospecto.jaxrs.api.PathTemplateResolver> value)
Creates a new instance ofTemplateResolver.- Parameters:
value- class for value attribute- Returns:
- annotation instance
-
httpGETAnnotation
public static javax.ws.rs.GET httpGETAnnotation()
Creates a new instance ofGET.- Returns:
- annotation instance
-
-