|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplateResolver
Interface for resolving an object and a view to a template. This is a plugable interface. To use your own implementation set the key edu.internet2.middleware.grouper.ui.TemplateResolver in resources/media.resources to the name of a class which implements this interface. If none is specified DefaultTemplateREsolverImpl is used.
Method Summary | |
---|---|
String |
getObjectType(Object obj)
Given an Object determine its type. |
String |
getTemplateName(Object obj,
String view,
ResourceBundle bundle,
HttpServletRequest request)
Given an Object and the name of a view, use the ResourceBundle to determine which JSP should render the view. |
Method Detail |
---|
String getObjectType(Object obj)
obj
- object to determine type of
String getTemplateName(Object obj, String view, ResourceBundle bundle, HttpServletRequest request)
obj
- object to be renderedview
- name of templatebundle
- ResourceBundle containing keys which can be maped to template
namesrequest
- current HttpServletRequest
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |