public class Profiles extends Object implements Iterable<String>
Environment
or will be set based on configuration data property values.Modifier and Type | Field and Description |
---|---|
static String |
INCLUDE_PROFILES_PROPERTY_NAME
Name of property to set to specify additionally included active profiles.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getAccepted()
Return the accepted profiles.
|
List<String> |
getActive()
Return the active profiles.
|
List<String> |
getDefault()
Return the default profiles.
|
boolean |
isAccepted(String profile)
Return if the given profile is active.
|
Iterator<String> |
iterator()
Return an iterator for all
accepted profiles . |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String INCLUDE_PROFILES_PROPERTY_NAME
public Iterator<String> iterator()
accepted profiles
.public List<String> getDefault()
public List<String> getAccepted()
public boolean isAccepted(String profile)
profile
- the profile to test