public class FileProfile extends Object
FileResourceMirror
.Modifier and Type | Field and Description |
---|---|
static String |
KEY_BASE_PATH
The profile key of base path.
|
Constructor and Description |
---|
FileProfile(String resourceName,
ClassLoader classLoader,
File basePath)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static FileProfile |
convert(ResourceProfile profile)
Converts
ResourceProfile into FileProfile . |
File |
getBasePath()
Returns the base path of target storage.
|
ClassLoader |
getClassLoader()
Returns the current class loader.
|
String |
getResourceName()
Returns the resource name.
|
public static final String KEY_BASE_PATH
${VARIABLE-NAME}
.public FileProfile(String resourceName, ClassLoader classLoader, File basePath)
resourceName
- the resource nameclassLoader
- current class loaderbasePath
- base pathIllegalArgumentException
- if some parameters were null
public String getResourceName()
public ClassLoader getClassLoader()
public File getBasePath()
public static FileProfile convert(ResourceProfile profile)
ResourceProfile
into FileProfile
.profile
- target profileIllegalArgumentException
- if profile is not valid, or any parameter is null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.