@ApplicationScoped public class PathAnnotationRoutesParser extends Object implements RoutesParser
Modifier | Constructor and Description |
---|---|
protected |
PathAnnotationRoutesParser()
Deprecated.
CDI eyes only
|
|
PathAnnotationRoutesParser(Router router) |
Modifier and Type | Method and Description |
---|---|
protected String |
defaultUriFor(String controllerName,
String methodName)
You can override this method for use a different convention for your
default URI, given a controller name and a method name
|
protected String |
extractControllerNameFrom(Class<?> type)
You can override this method for use a different convention for your
controller name, given a type
|
protected String |
extractPrefix(Class<?> type) |
protected void |
fixURIs(Class<?> type,
String[] uris) |
protected String[] |
getUris(Method javaMethod) |
protected String[] |
getURIsFor(Method javaMethod,
Class<?> type) |
protected boolean |
isEligible(Method javaMethod) |
protected List<Route> |
registerRulesFor(Class<?> baseType) |
protected String |
removeTrailingSlash(String prefix) |
List<Route> |
rulesFor(BeanClass controller) |
protected PathAnnotationRoutesParser()
@Inject public PathAnnotationRoutesParser(Router router)
public List<Route> rulesFor(BeanClass controller)
rulesFor
in interface RoutesParser
protected boolean isEligible(Method javaMethod)
protected String extractControllerNameFrom(Class<?> type)
Copyright © 2014 Caelum. All rights reserved.