public abstract class Profile
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static HashMap<java.lang.String,Profile> |
PROFILES
Stores the name-profile mappings.
|
| Constructor and Description |
|---|
Profile() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
applyConfiguration()
Applies the default settings of this profile to the configuration.
|
abstract java.lang.String |
getName()
Returns the name of the profile as it should be specified in
configuration options.
|
static Profile |
getProfile(java.lang.String name)
Returns the profile matching the given
name. |
static java.util.Iterator<Profile> |
getProfiles()
Returns all registered profiles.
|
static void |
registerProfile(Profile profile)
Registers a profile.
|
public static final void registerProfile(Profile profile)
profile - the profile to be registeredjava.lang.IllegalArgumentException - if profile is null
or emptypublic static final Profile getProfile(java.lang.String name)
name.name - the name of the profile to be returnedjava.lang.IllegalArgumentException - if name is nullpublic static final java.util.Iterator<Profile> getProfiles()
public abstract java.lang.String getName()
public abstract void applyConfiguration()