public abstract class TransformerBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected File |
configsDir |
protected Boolean |
verbose |
| Modifier | Constructor and Description |
|---|---|
protected |
TransformerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ArchiveTransformer |
build()
Creates new resource transformer and closes this builder instance.
|
protected abstract ArchiveTransformer |
buildInternal()
Creates new transformer instance.
|
TransformerBuilder |
setConfigsDir(String configsDir)
Sets directory where transformer specific external configuration files are located.
|
TransformerBuilder |
setVerbose(boolean verbose)
Sets verbosity of underlying transformation engine.
|
public final TransformerBuilder setConfigsDir(String configsDir)
configsDir - configuration files directoryConcurrentModificationException - if this builder instance is used by multiple threadsIllegalStateException - if either build() or this method (with given config type) have been already calledIllegalArgumentException - if method parameter is null
or if method parameter equals to empty string
or if provided directory doesn't exist
or if provided directory name doesn't point to directorypublic final TransformerBuilder setVerbose(boolean verbose)
verbose - if output should be verbose or notpublic final ArchiveTransformer build()
ConcurrentModificationException - if this builder instance is used by multiple threadsIllegalStateException - if this method have been already called or
there was no packages mapping defined in configuration file or
if packages mapping count in configuration file surpasses value 65535IllegalArgumentException - if configuration file has invalid format or it contains identical package mapping
or if some package defined in one package mapping is a substring of package in another package mappingprotected abstract ArchiveTransformer buildInternal()
Copyright © 2020 JBoss by Red Hat. All rights reserved.