|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.store.resource.ResourceHelper
public class ResourceHelper
Helper class to load resources.
Field Summary | |
---|---|
protected static String |
CUMULUS4J_BACKEND_PROPERTIES
File name of the backend-properties. |
Constructor Summary | |
---|---|
ResourceHelper()
|
Method Summary | |
---|---|
static Map<String,Object> |
getCumulus4jBackendProperties()
Get the backend-properties (from file "cumulus4j-backend.properties"). |
protected static InputStream |
openCumulus4jBackendProperties()
Open an InputStream reading the file "cumulus4j-backend.properties". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String CUMULUS4J_BACKEND_PROPERTIES
getCumulus4jBackendProperties()
,
Constant Field ValuesConstructor Detail |
---|
public ResourceHelper()
Method Detail |
---|
protected static InputStream openCumulus4jBackendProperties()
Open an InputStream
reading the file "cumulus4j-backend.properties".
Important: You must close this InputStream
!!!
InputStream
(never null
).getCumulus4jBackendProperties()
public static Map<String,Object> getCumulus4jBackendProperties()
Get the backend-properties (from file "cumulus4j-backend.properties").
The backend-properties are loaded from the file "cumulus4j-backend.properties"
and used for the configuration of the backend-PersistenceManagerFactory
. This file only
contains connection-independent settings (i.e. things that should never change).
The connection-dependent settings are copied from the frontend-PMF's configuration.
Additionally, all properties in the frontend-PMF's configuration starting with "cumulus4j.datanucleus." or "cumulus4j.javax." are forwarded to the backend-PMF (without the "cumulus4j."-prefix, of course) overriding the default settings.
Map
containing all settings from the backend-properties; never null
.
|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |