Class AtlassianMethodTranslator
java.lang.Object
org.apache.velocity.util.introspection.MethodTranslatorImpl
com.atlassian.velocity.allowlist.uberspect.AtlassianMethodTranslator
- All Implemented Interfaces:
org.apache.velocity.util.introspection.MethodTranslator
public class AtlassianMethodTranslator
extends org.apache.velocity.util.introspection.MethodTranslatorImpl
For use with Velocity configuration property
introspector.method.translator in products where any of the
following proxies are present:
- HibernateProxy
- Spring InfrastructureProxy
- Spring TargetClassAware based proxy
- ContextClassLoaderSettingInvocationHandler backed OSGi service dynamic proxy
- AnnotationPreservingInvocationHandler backed HtmlSafe dynamic proxy
- HostComponentFactoryBean$DynamicServiceInvocationHandler backed OSGi component dynamic proxy
- Since:
- 6.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>classUnproxyingFunction(Object target) An unproxying function that can only resolve the target class rather than the instance.protected Objectprotected ObjectgetHibernateProxyTarget(Object proxy) protected ObjectgetHtmlSafeProxyTarget(Object proxy) protected Objectprotected Objectprotected ObjectgetSpringInfraProxyTarget(Object proxy) getTranslatedMethod(Object target, Method method) protected MethodgetUnproxiedSpecificMethod(Object target, Method method) protected MethodgetUnproxiedSpecificMethodCached(Object target, Method method) Can be overridden to add more unproxying functions, perhaps product-specific.Methods inherited from class org.apache.velocity.util.introspection.MethodTranslatorImpl
getInterfaceMethodIfPossible
-
Field Details
-
HTMLSAFE_HANDLER_NAME
- See Also:
-
OSGI_COMPONENT_HANDLER_NAME
- See Also:
-
-
Constructor Details
-
AtlassianMethodTranslator
- Throws:
Exception
-
-
Method Details
-
getTranslatedMethod
- Specified by:
getTranslatedMethodin interfaceorg.apache.velocity.util.introspection.MethodTranslator- Overrides:
getTranslatedMethodin classorg.apache.velocity.util.introspection.MethodTranslatorImpl
-
getUnproxiedSpecificMethodCached
-
getUnproxiedSpecificMethod
-
unproxyingFunctions
Can be overridden to add more unproxying functions, perhaps product-specific. -
classUnproxyingFunction
An unproxying function that can only resolve the target class rather than the instance. -
getHibernateProxyTarget
-
getSpringAdvisedProxyTarget
-
getSpringInfraProxyTarget
-
getContextClassLoaderProxyTarget
-
getHtmlSafeProxyTarget
-
getOsgiComponentProxyTarget
-