public static final class PeerEnhancer.Builder extends Object
| Constructor and Description |
|---|
PeerEnhancer.Builder(File from,
File to)
Creates a new Builder.
|
| Modifier and Type | Method and Description |
|---|---|
PeerEnhancer.Builder |
deallocationMethod(String name)
Indicates the name of the peer deallocation method.
|
void |
enhance()
Enhances the peer.
|
PeerEnhancer.Builder |
library(String name)
Adds a library to be loaded by the peer.
|
PeerEnhancer.Builder |
verbose(boolean value)
Indicates if the peer should log lifecycle events.
|
public PeerEnhancer.Builder(File from, File to) throws IllegalArgumentException
from - the path of the peer before it has been enhancedto - the path of the peer after it has been enhancedIllegalArgumentException - if from or to are nullpublic PeerEnhancer.Builder library(String name)
name - the library namepublic PeerEnhancer.Builder deallocationMethod(String name) throws IllegalArgumentException
name - the method name, or null if there is no deallocation method. The default is null.IllegalArgumentException - if name is an empty stringpublic PeerEnhancer.Builder verbose(boolean value)
value - true if the peer should log lifecycle events. The default is false.public void enhance()
throws IOException
IOException - if an I/O error occursIllegalArgumentException - if no libraries were specifiedCopyright © 2012. All Rights Reserved.