|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TemplateObjectModel
Simple interface for extracting the underlying object from a given template model. Implement this interface when you want to:
freemarker.ext.beans package; orTemplateMethodModel2
implementationFor some object models, this could be a potential security hazard.
In these cases, the getAsObject method should return a
delegate object instead of the underlying object. The delegate would
pass method calls to the underlying object, possibly performing security
checks before forwarding the call.
| Method Summary | |
|---|---|
java.lang.Object |
getAsObject()
Return the underlying object to the reflection mechanism in the freemarker.ext.beans2 package. |
| Methods inherited from interface freemarker.template.TemplateModel |
|---|
isEmpty |
| Method Detail |
|---|
java.lang.Object getAsObject()
throws TemplateModelException
freemarker.ext.beans2 package. Any variables, methods
or properties can be called directly via reflection.
TemplateModelException - the object could not be returned
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||