Package net.bytebuddy.build
Class Plugin.Engine.Target.ForFolder
java.lang.Object
net.bytebuddy.build.Plugin.Engine.Target.ForFolder
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Plugin.Engine.Target
,Plugin.Engine.Target.Sink
- Enclosing interface:
Plugin.Engine.Target
@Enhance
public static class Plugin.Engine.Target.ForFolder
extends Object
implements Plugin.Engine.Target, Plugin.Engine.Target.Sink
Represents a folder as the target for a plugin engine's application.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.Target
Plugin.Engine.Target.Discarding, Plugin.Engine.Target.ForFolder, Plugin.Engine.Target.ForJarFile, Plugin.Engine.Target.InMemory, Plugin.Engine.Target.Sink
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.Target.Sink
Plugin.Engine.Target.Sink.ForJarOutputStream
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
retain
(Plugin.Engine.Source.Element element) Retains the supplied element in its original form.void
store
(Map<TypeDescription, byte[]> binaryRepresentations) Stores the supplied binary representation of types in this sink.Initializes this target prior to writing.
-
Field Details
-
folder
The folder that is represented by this instance.
-
-
Constructor Details
-
ForFolder
Creates a new target for a folder.- Parameters:
folder
- The folder that is represented by this instance.
-
-
Method Details
-
write
Initializes this target prior to writing.- Specified by:
write
in interfacePlugin.Engine.Target
- Parameters:
manifest
- The manifest for the target ornull
if no manifest was found.- Returns:
- The sink to write to.
- Throws:
IOException
- If an I/O error occurs.
-
store
Stores the supplied binary representation of types in this sink.- Specified by:
store
in interfacePlugin.Engine.Target.Sink
- Parameters:
binaryRepresentations
- The binary representations to store.- Throws:
IOException
- If an I/O error occurs.
-
retain
Retains the supplied element in its original form.- Specified by:
retain
in interfacePlugin.Engine.Target.Sink
- Parameters:
element
- The element to retain.- Throws:
IOException
- If an I/O error occurs.
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-