Setter based resource injection.
To access a resource a developer declares a setter method and annotates it as being a
resource reference. The name and type of resource maybe inferred by inspecting the
method declaration if necessary. The name of the resource, if not declared, is the
name of the JavaBeans property as determined starting from the name of the setter
method in question. The setter method must follow the standard JavaBeans
convention - name starts with a 'set', void return type and only one parameter.
Additionally, the type of the parameter must be compatible with the type specified
as a property of the Resource if present.
Parameter type to accept/ignore.
field is not null then:
- true means include only methods with accept parameter,
- false means exclude all methods with accept parameter
accept filtering class
include whether include/exclude filtering class
final boolean matches = super.matches(method);
return this.include ? parameterMatch : !parameterMatch;