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