Module org.refcodes.archetype
Package org.refcodes.archetype
package org.refcodes.archetype
This artifact provides base functionality such as the CliHelper
as well as the C2Helper
required by some of the refcodes-archetype-alt
archetypes.
Please refer to the refcodes-archetype: Using the REFCODES.ORG toolkit made easy documentation for an up-to-date and detailed description on the usage of this artifact.
-
ClassDescription
AppHelper.Builder
to buildAppHelper
.TheC2Helper
provides means to manage launching and connecting to a C2 server.AbstractBuilderCli to buildC2Helper
instances.TheCliHelper
provides means to support CLI command line argument parsing.E.g. using theCliHelper
you easily can create configuration files ("--init" or "--init path/to/your/config") from a template (found in "src/main/resources"), print a help text ("--help"), show system information ("--sysinfo") for support issues, regard being more verbose ("--verbose") or more quiet ("--quiet"), load a configuration from a specific location ("--config path/to/your/config"), all given that your command line syntax given uses the according predefined args syntaxConstituent
elements such asHelpFlag
,VerboseFlag
,QuietFlag
,InitFlag
,SysInfoFlag
,DebugFlag
orConfigOption
(and the like).CliHelper.Builder
to buildCliHelper
.TheCtxHelper
enables harnessing theApplicationProperties
alongside theApplicationProperties
profile support (as ofProfileProperties.getRuntimeProfiles()
) by automatically placing an accordingly configuredApplicationProperties
instance into the container and enabling it for injection.CtxHelper.Builder
to buildCliHelper
.