Package net.bytebuddy.build
Class Plugin.Engine.Target.ForFolder.Dispatcher.ForJava7CapableVm
- java.lang.Object
-
- net.bytebuddy.build.Plugin.Engine.Target.ForFolder.Dispatcher.ForJava7CapableVm
-
- All Implemented Interfaces:
Plugin.Engine.Target.ForFolder.Dispatcher
- Enclosing interface:
- Plugin.Engine.Target.ForFolder.Dispatcher
@Enhance public static class Plugin.Engine.Target.ForFolder.Dispatcher.ForJava7CapableVm extends java.lang.Object implements Plugin.Engine.Target.ForFolder.Dispatcher
A dispatcher for VMs that are capable of NIO2.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.Target.ForFolder.Dispatcher
Plugin.Engine.Target.ForFolder.Dispatcher.CreationAction, Plugin.Engine.Target.ForFolder.Dispatcher.ForJava7CapableVm, Plugin.Engine.Target.ForFolder.Dispatcher.ForLegacyVm
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.MethodcopyThejava.nio.Files#copy(Path,Path,CopyOption[])method.private java.lang.Object[]copyOptionsThe copy options to apply.private java.lang.reflect.MethodtoPathThejava.io.File#toPath()method.
-
Constructor Summary
Constructors Modifier Constructor Description protectedForJava7CapableVm(java.lang.reflect.Method toPath, java.lang.reflect.Method copy, java.lang.Object[] copyOptions)Creates a new NIO2 capable dispatcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy(java.io.File source, java.io.File target)Copies the source file to the target location.booleanisAlive()Returnstrueif this dispatcher is alive.
-
-
-
Constructor Detail
-
ForJava7CapableVm
protected ForJava7CapableVm(java.lang.reflect.Method toPath, java.lang.reflect.Method copy, java.lang.Object[] copyOptions)Creates a new NIO2 capable dispatcher.- Parameters:
toPath- Thejava.io.File#toPath()method.copy- Thejava.nio.Files#copy(Path,Path,CopyOption[])method.copyOptions- The copy options to apply.
-
-
Method Detail
-
isAlive
public boolean isAlive()
Returnstrueif this dispatcher is alive.- Specified by:
isAlivein interfacePlugin.Engine.Target.ForFolder.Dispatcher- Returns:
trueif this dispatcher is alive.
-
copy
public void copy(java.io.File source, java.io.File target) throws java.io.IOExceptionCopies the source file to the target location.- Specified by:
copyin interfacePlugin.Engine.Target.ForFolder.Dispatcher- Parameters:
source- The source file.target- The target file.- Throws:
java.io.IOException- If an I/O error occurs.
-
-