Package org.proxy4j.core.reflect
Class BasicMethodExtractor
- java.lang.Object
-
- org.proxy4j.core.reflect.BaseMethodExtractor
-
- org.proxy4j.core.reflect.UnitypeMethodExtractor
-
- org.proxy4j.core.reflect.BasicMethodExtractor
-
- All Implemented Interfaces:
MethodExtractor
public class BasicMethodExtractor extends UnitypeMethodExtractor
Extracts method information from the given type.
- Author:
- Brennan Spies
-
-
Constructor Summary
Constructors Constructor Description BasicMethodExtractor(Class<?> owningType)Creates aBasicMethodExtractorwith the primary type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Method>getMethods(MethodFilter filter)Returns all methods fromMethodExtractor.getProxyableMethods(), filered by the givenMethodFilter.Collection<Method>getProxyableMethods()Returns all methods that can be proxied.Collection<Method>getPublicMethods()Returns allpublicmethods that are proxyable.protected booleanisProxyable(Method method)Determines if the given method is proxyable.-
Methods inherited from class org.proxy4j.core.reflect.UnitypeMethodExtractor
getOwningPackageName, getOwningType, isObjectMethod
-
Methods inherited from class org.proxy4j.core.reflect.BaseMethodExtractor
getPackageName, isIncludeObjectMethods, setIncludeObjectMethods
-
-
-
-
Constructor Detail
-
BasicMethodExtractor
public BasicMethodExtractor(Class<?> owningType)
Creates aBasicMethodExtractorwith the primary type- Parameters:
owningType- The primary type, owner of the proxied methods
-
-
Method Detail
-
getProxyableMethods
public Collection<Method> getProxyableMethods()
Returns all methods that can be proxied. This excludes methods that areprivate,static, orfinal.- Returns:
- All methods that can be proxied
-
getPublicMethods
public Collection<Method> getPublicMethods()
Returns allpublicmethods that are proxyable.- Returns:
- All public methods
-
getMethods
public Collection<Method> getMethods(MethodFilter filter)
Returns all methods fromMethodExtractor.getProxyableMethods(), filered by the givenMethodFilter.- Parameters:
filter- The method filter- Returns:
- All the non-private filtered methods
-
isProxyable
protected boolean isProxyable(Method method)
Determines if the given method is proxyable.- Overrides:
isProxyablein classUnitypeMethodExtractor- Parameters:
method- The method to test- Returns:
- True if method is proxyable
-
-