|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Registry
Registry is the URL -> object mapper. It manages controllers (any dynamic object you like so long as it has the correct annotation). It watches and tracks special objects such as login form providers, authenticators and error handlers.
Method Summary | |
---|---|
Authenticator |
getAuthenticator()
|
long |
getCacheTimeout(ObjectAndMethod oam)
returns the timeout limit for any cached content generated by this particular object and method. |
java.lang.Object |
getController(ObjectAndMethod oam)
|
ErrorHandler |
getErrorHandler()
|
LoginForm |
getLoginForm()
|
java.lang.reflect.Method |
getMethod(ObjectAndMethod oam)
|
java.lang.String[] |
getRolesFor(ObjectAndMethod oam)
Return the roles which a User must have to access the method specified in the oam. |
boolean |
hasAuthenticator()
|
boolean |
hasController(ObjectAndMethod oam)
Checks to see if a controller exists that can handle the path supplied. |
boolean |
hasErrorHandler()
|
boolean |
hasLoginForm()
|
boolean |
hasMethod(ObjectAndMethod oam)
|
boolean |
isCacheable(ObjectAndMethod oam)
lets a client know whether the method was explicitly (or implicitly at class level) marked as being safe to cache. |
Method Detail |
---|
boolean hasAuthenticator()
boolean hasLoginForm()
boolean hasErrorHandler()
boolean hasController(ObjectAndMethod oam)
oam
-
boolean hasMethod(ObjectAndMethod oam)
oam
- the ObjectAndMethod that will be checked
Authenticator getAuthenticator()
LoginForm getLoginForm()
ErrorHandler getErrorHandler()
java.lang.Object getController(ObjectAndMethod oam)
oam
- the path to check against
java.lang.reflect.Method getMethod(ObjectAndMethod oam)
oam
- the path to check against
java.lang.String[] getRolesFor(ObjectAndMethod oam)
oam
-
boolean isCacheable(ObjectAndMethod oam)
oam
-
long getCacheTimeout(ObjectAndMethod oam)
oam
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |