public interface ObjectWrapperWithAPISupport extends ObjectWrapper
ObjectWrapper-s to help TemplateModel-s to
implement the someValue?api operation.
Experimental status warning: This interface is subject to change on non-backward compatible ways, hence, it shouldn't be implemented outside FreeMarker yet.
BEANS_WRAPPER, DEFAULT_WRAPPER, SIMPLE_WRAPPER| Modifier and Type | Method and Description |
|---|---|
TemplateHashModel |
wrapAsAPI(java.lang.Object obj)
Wraps an object to a
TemplateModel that exposes the object's "native" (usually, Java) API. |
wrapTemplateHashModel wrapAsAPI(java.lang.Object obj) throws TemplateModelException
TemplateModel that exposes the object's "native" (usually, Java) API.obj - The object for which the API model has to be returned. Shouldn't be null.TemplateModel through which the API of the object can be accessed. Can't be null.TemplateModelException