Package com.authlete.common.util
Enum PropertiesLoader.FileLocation
- java.lang.Object
-
- java.lang.Enum<PropertiesLoader.FileLocation>
-
- com.authlete.common.util.PropertiesLoader.FileLocation
-
- All Implemented Interfaces:
Serializable
,Comparable<PropertiesLoader.FileLocation>
- Enclosing class:
- PropertiesLoader
public static enum PropertiesLoader.FileLocation extends Enum<PropertiesLoader.FileLocation>
File location types.- Author:
- Takahiko Kawasaki
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASSPATH
Classpath.FILESYSTEM
File system.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertiesLoader.FileLocation
valueOf(String name)
Returns the enum constant of this type with the specified name.static PropertiesLoader.FileLocation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILESYSTEM
public static final PropertiesLoader.FileLocation FILESYSTEM
File system.
-
CLASSPATH
public static final PropertiesLoader.FileLocation CLASSPATH
Classpath.The file is opened by
PropertiesLoader.class.
getResourceAsString(file)
. If the file name given to aload
method does not start with"/"
,"/"
is prepended.
-
-
Method Detail
-
values
public static PropertiesLoader.FileLocation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PropertiesLoader.FileLocation c : PropertiesLoader.FileLocation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertiesLoader.FileLocation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-