Package org.jboss.weld.bean.proxy
Class GroovyMethodFilter
java.lang.Object
org.jboss.weld.bean.proxy.GroovyMethodFilter
- All Implemented Interfaces:
ProxiedMethodFilter
ProxiedMethodFilter implementation for Groovy. Methods declared by groovy.lang.GroovyObject
and their implementations are ignored.- Author:
- Jozef Hartinger
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GroovyMethodFilter
public GroovyMethodFilter()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Description copied from interface:ProxiedMethodFilterDetermines whether this filter is enabled. E.g. GroovyMethodFilter is only enabled in Groovy environment- Specified by:
isEnabledin interfaceProxiedMethodFilter- Returns:
- true if this method filter should be used
-
accept
Description copied from interface:ProxiedMethodFilterDetermines, whether the given method should be implemented by the proxy / subclass or not.- Specified by:
acceptin 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
-