Package org.proxy4j.core.reflect
Class UnitypeMethodExtractor
- java.lang.Object
-
- org.proxy4j.core.reflect.BaseMethodExtractor
-
- org.proxy4j.core.reflect.UnitypeMethodExtractor
-
- All Implemented Interfaces:
MethodExtractor
- Direct Known Subclasses:
BasicMethodExtractor,InheritableMethodExtractor
public abstract class UnitypeMethodExtractor extends BaseMethodExtractor
Method extractor for single type.- Author:
- Brennan Spies
-
-
Constructor Summary
Constructors Constructor Description UnitypeMethodExtractor(Class<?> owningType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetOwningPackageName()Returns the package of the owning type.protected Class<?>getOwningType()Returns the primary/owning type of the methods to be proxied.protected booleanisObjectMethod(Method method)True if the method is declared byjava.lang.Object.protected booleanisProxyable(Method method)Determines if the given method is proxyable.-
Methods inherited from class org.proxy4j.core.reflect.BaseMethodExtractor
getPackageName, isIncludeObjectMethods, setIncludeObjectMethods
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.proxy4j.core.reflect.MethodExtractor
getMethods, getProxyableMethods, getPublicMethods
-
-
-
-
Constructor Detail
-
UnitypeMethodExtractor
public UnitypeMethodExtractor(Class<?> owningType)
-
-
Method Detail
-
getOwningPackageName
protected String getOwningPackageName()
Returns the package of the owning type.- Returns:
- The package
-
getOwningType
protected Class<?> getOwningType()
Returns the primary/owning type of the methods to be proxied.- Returns:
- The owning type
-
isObjectMethod
protected boolean isObjectMethod(Method method)
True if the method is declared byjava.lang.Object.- Parameters:
method- The method- Returns:
- True if this method is declared by
Object
-
isProxyable
protected boolean isProxyable(Method method)
Determines if the given method is proxyable.- Parameters:
method- The method to test- Returns:
- True if method is proxyable
-
-