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 Details

    • GroovyMethodFilter

      public GroovyMethodFilter()
  • Method Details

    • 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 interface ProxiedMethodFilter
      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 interface ProxiedMethodFilter
      Parameters:
      method - the given method
      proxySuperclass - the class the proxy extends directly
      Returns:
      true iff the method filter does not ban the given method from being implemented