|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.shrinkwrap.api.ConfigurationBuilder
public class ConfigurationBuilder
Mutable construction object for new instances of Configuration
.
Provides defaults for each property if not specified (null) according to the following:
executorService
- Stay null, none is required and ShrinkWrap will create its own and destroy it when done as neededextensionLoader
- A new instance of the service extension loader from shrinkwrap-implbuild()
.
Constructor Summary | |
---|---|
ConfigurationBuilder()
Creates a new builder initialized to defaults (null) values. |
Method Summary | |
---|---|
Configuration |
build()
Builds a new Configuration using the properties contained
in this builder. |
ConfigurationBuilder |
executorService(ExecutorService executorService)
Sets the ExecutorService to be used, returning this instance |
ConfigurationBuilder |
extensionLoader(ExtensionLoader extensionLoader)
Sets the ExtensionLoader to be used, returning this instance |
ExecutorService |
getExecutorService()
|
ExtensionLoader |
getExtensionLoader()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationBuilder()
build()
.
Method Detail |
---|
public ExtensionLoader getExtensionLoader()
public ExecutorService getExecutorService()
public ConfigurationBuilder extensionLoader(ExtensionLoader extensionLoader)
ExtensionLoader
to be used, returning this instance
extensionLoader
-
public ConfigurationBuilder executorService(ExecutorService executorService)
ExecutorService
to be used, returning this instance
executorService
-
public Configuration build()
Configuration
using the properties contained
in this builder. In the case a property has not been specified, it will be defaulted
according to the rules set forth in this ConfigurationBuilder
's contract.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |