com.liferay.portal.kernel.bean
Class AutoEscapeBeanHandler
java.lang.Object
com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
- All Implemented Interfaces:
- Serializable, InvocationHandler
public class AutoEscapeBeanHandler
- extends Object
- implements InvocationHandler, Serializable
Wraps a bean so that all strings returned from @AutoEscape
annotated methods are automatically HTML escaped.
For a usage example see ShoppingUtil.getBreadcrumbs
.
- See Also:
AutoEscape
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoEscapeBeanHandler
public AutoEscapeBeanHandler(Object bean)
getBean
public Object getBean()
invoke
public Object invoke(Object proxy,
Method method,
Object[] arguments)
throws Throwable
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable