java.lang.Object
org.refcodes.archetype.C2Helper.Builder
- Enclosing class:
- C2Helper
Builder to build
C2Helper
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newC2Helper
using the configured properties.withForce
(boolean isForce) Builder method setting the application's force mode.withInstanceAlias
(String aInstanceAlias) Builder method providing the application's instance alias.withLogger
(org.refcodes.logger.RuntimeLogger aLogger) Builder method providing the application'sRuntimeLogger
.withResourceLocator
(Class<?> aResourceLocator) Builder method providing theClass
when doing a lookup of a (module specific) resource.withVerbose
(boolean isVerbose) Builder method setting the application's verbose mode.
-
Method Details
-
withLogger
Builder method providing the application'sRuntimeLogger
.- Parameters:
aLogger
- The application'sRuntimeLogger
.- Returns:
- This
C2Helper.Builder
as of the builder pattern.
-
withInstanceAlias
Builder method providing the application's instance alias.- Parameters:
aInstanceAlias
- The application's alias identifying the instance.- Returns:
- This
C2Helper.Builder
as of the builder pattern.
-
withResourceLocator
Builder method providing theClass
when doing a lookup of a (module specific) resource.- Parameters:
aResourceLocator
- The application'sClass
which to use when loading resources (of the according module) by invokingClass.getResourceAsStream(String)
.- Returns:
- This
C2Helper.Builder
as of the builder pattern.
-
withVerbose
Builder method setting the application's verbose mode.- Parameters:
isVerbose
- True in case to be more verbose.- Returns:
- This
C2Helper.Builder
as of the builder pattern.
-
withForce
Builder method setting the application's force mode.- Parameters:
isForce
- True in case to be more verbose.- Returns:
- This
C2Helper.Builder
as of the builder pattern.
-
build
Creates a newC2Helper
using the configured properties.- Returns:
- The accordingly configured
C2Helper
. - Throws:
IOException
- thrown in I/O problems occurred building theC2Helper
.
-