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.Method
copy
Thejava.nio.Files#copy(Path,Path,CopyOption[])
method.private java.lang.Object[]
copyOptions
The copy options to apply.private java.lang.reflect.Method
toPath
Thejava.io.File#toPath()
method.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForJava7CapableVm(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 void
copy(java.io.File source, java.io.File target)
Copies the source file to the target location.boolean
isAlive()
Returnstrue
if 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()
Returnstrue
if this dispatcher is alive.- Specified by:
isAlive
in interfacePlugin.Engine.Target.ForFolder.Dispatcher
- Returns:
true
if this dispatcher is alive.
-
copy
public void copy(java.io.File source, java.io.File target) throws java.io.IOException
Copies the source file to the target location.- Specified by:
copy
in interfacePlugin.Engine.Target.ForFolder.Dispatcher
- Parameters:
source
- The source file.target
- The target file.- Throws:
java.io.IOException
- If an I/O error occurs.
-
-