Class ResourceInvocationHandler
- java.lang.Object
-
- org.codehaus.plexus.components.io.resources.proxy.ResourceInvocationHandler
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
class ResourceInvocationHandler extends java.lang.Object implements java.lang.reflect.InvocationHandler
-
-
Field Summary
Fields Modifier and Type Field Description private ContentSupplier
contentSupplier
private NameSupplier
nameSupplier
private ResourceAttributeSupplier
resourceAttributeSupplier
private SizeSupplier
sizeSupplier
private SymlinkDestinationSupplier
symlinkDestinationSupplier
private PlexusIoResource
testImpl
-
Constructor Summary
Constructors Constructor Description ResourceInvocationHandler(PlexusIoResource target, java.lang.Object alternativeHandler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static <T> T
asOrNull(java.lang.Object instance, java.lang.Class<T> clazz)
java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
-
-
-
Field Detail
-
testImpl
private PlexusIoResource testImpl
-
contentSupplier
private final ContentSupplier contentSupplier
-
nameSupplier
private final NameSupplier nameSupplier
-
sizeSupplier
private final SizeSupplier sizeSupplier
-
symlinkDestinationSupplier
private final SymlinkDestinationSupplier symlinkDestinationSupplier
-
resourceAttributeSupplier
private final ResourceAttributeSupplier resourceAttributeSupplier
-
-
Constructor Detail
-
ResourceInvocationHandler
public ResourceInvocationHandler(@Nonnull PlexusIoResource target, java.lang.Object alternativeHandler)
-
-
Method Detail
-
asOrNull
private static <T> T asOrNull(java.lang.Object instance, java.lang.Class<T> clazz)
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
-