Package org.jboss.weld.bean.proxy
Class GroovyMethodFilter
- java.lang.Object
-
- org.jboss.weld.bean.proxy.GroovyMethodFilter
-
- All Implemented Interfaces:
ProxiedMethodFilter
public class GroovyMethodFilter extends Object implements ProxiedMethodFilter
ProxiedMethodFilter
implementation for Groovy. Methods declared by groovy.lang.GroovyObject and their implementations are ignored.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description GroovyMethodFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(Method method, Class<?> proxySuperclass)
Determines, whether the given method should be implemented by the proxy / subclass or not.boolean
isEnabled()
Determines whether this filter is enabled.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Description copied from interface:ProxiedMethodFilter
Determines whether this filter is enabled. E.g. GroovyMethodFilter is only enabled in Groovy environment- Specified by:
isEnabled
in interfaceProxiedMethodFilter
- Returns:
- true if this method filter should be used
-
accept
public boolean accept(Method method, Class<?> proxySuperclass)
Description copied from interface:ProxiedMethodFilter
Determines, whether the given method should be implemented by the proxy / subclass or not.- Specified by:
accept
in interfaceProxiedMethodFilter
- Parameters:
method
- the given methodproxySuperclass
- the class the proxy extends directly- Returns:
- true iff the method filter does not ban the given method from being implemented
-
-