| 
Cumulus4j API (1.1.1)  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.  | 
protected static String | 
CUMULUS4J_PERSISTENCE_PROPERTIES
 | 
| Constructor Summary | |
|---|---|
ResourceHelper()
 | 
|
| Method Summary | |
|---|---|
static Map<String,Object> | 
getCumulus4jBackendProperties()
Get the backend-properties (from file "cumulus4j-backend.properties").  | 
static Map<String,Object> | 
getCumulus4jPersistenceProperties()
 | 
protected static Map<String,Object> | 
getPropertiesAsMap(Properties properties)
 | 
protected static InputStream | 
openCumulus4jBackendProperties()
Open an InputStream reading the file "cumulus4j-backend.properties". | 
protected static InputStream | 
tryOpenCumulus4jPersistenceProperties()
 | 
| 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 Valuesprotected static final String CUMULUS4J_PERSISTENCE_PROPERTIES
| Constructor 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()protected static InputStream tryOpenCumulus4jPersistenceProperties()
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.public static Map<String,Object> getCumulus4jPersistenceProperties()
protected static Map<String,Object> getPropertiesAsMap(Properties properties)
  | 
Cumulus4j API (1.1.1)  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||