public class CayenneUserDir extends Object
$HOME/.cayenne directory.| Modifier and Type | Field and Description |
|---|---|
static String |
ALT_USER_DIR_PROPERTY
A property name for the property that allows to define an alternative location of
Cayenne User Directory (instead of default "$HOME/.cayenne").
|
static String |
CAYENNE_DIR |
protected File |
cayenneUserDir |
protected static CayenneUserDir |
sharedInstance |
| Modifier | Constructor and Description |
|---|---|
protected |
CayenneUserDir()
Constructor for CayenneUserDir.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead()
Return false if the directory is not accessible for any reason at least for
reading.
|
boolean |
canWrite()
Return false if the directory is not accessible for any reason at least for
reading.
|
File |
getDirectory()
Returns a directory object where all user Cayenne-related configuration is stored.
|
static CayenneUserDir |
getInstance() |
File |
resolveFile(String name) |
protected static CayenneUserDir sharedInstance
public static final String CAYENNE_DIR
public static final String ALT_USER_DIR_PROPERTY
protected File cayenneUserDir
public static CayenneUserDir getInstance()
public File getDirectory()
public boolean canRead()
public boolean canWrite()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.