public interface HubProfileFactory
Modifier and Type | Method and Description |
---|---|
HubProfile |
createHubProfile(List flagList)
Creates a HubProfile perhaps configured using a supplied list
of flags.
|
String[] |
getFlagsUsage()
Returns an array of strings, each describing one command-line flag
which will be consumed by the
createProfile method. |
Class |
getHubProfileClass()
Returns a HubProfile subclass with a no-arg constructor which,
when invoked, will produce a basic instance of the HubProfile
represented by this factory.
|
String |
getName()
Returns the name used to identify this profile.
|
String getName()
String[] getFlagsUsage()
createProfile
method.HubProfile createHubProfile(List flagList) throws IOException
getFlagsUsage()
command are used for configuration of the
returned hub, and must be removed from the flagList
list.
Unrecognised flags should be ignored and left in the list.
Flags which are recognised but badly formed should raise a
RuntimeException with a helpful message.flagList
- mutable list of Strings giving command-ilne flags,
some of which may be intended for configuring a profileIOException
Class getHubProfileClass()
createHubProfile(java.util.List)
with an empty flag list.Copyright © 2008–2024. All rights reserved.