public class StandardHubProfileFactory extends Object implements HubProfileFactory
| Constructor and Description |
|---|
StandardHubProfileFactory() |
| 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 "std".
|
public String getName()
getName in interface HubProfileFactorypublic String[] getFlagsUsage()
HubProfileFactorycreateProfile method.getFlagsUsage in interface HubProfileFactorypublic HubProfile createHubProfile(List flagList) throws IOException
HubProfileFactoryHubProfileFactory.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.createHubProfile in interface HubProfileFactoryflagList - mutable list of Strings giving command-ilne flags,
some of which may be intended for configuring a profileIOExceptionpublic Class getHubProfileClass()
HubProfileFactoryHubProfileFactory.createHubProfile(java.util.List) with an empty flag list.getHubProfileClass in interface HubProfileFactoryCopyright © 2008–2024. All rights reserved.