Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.bean
Class AutoEscapeBeanHandler

java.lang.Object
  extended by 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

Constructor Summary
AutoEscapeBeanHandler(Object bean)
           
 
Method Summary
 Object getBean()
           
 Object invoke(Object proxy, Method method, Object[] arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoEscapeBeanHandler

public AutoEscapeBeanHandler(Object bean)
Method Detail

getBean

public Object getBean()

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] arguments)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

Liferay 6.1.2-ce-ga3