public class DefaultStorageProvider
extends java.lang.Object
StorageProvider instance to be configured on an
application level.
The default instance can be set by either calling
setInstance(StorageProvider) when the application starts up or by
setting the system property
org.apache.james.mime4j.defaultStorageProvider to the class
name of a StorageProvider implementation.
If neither option is used or if the class instantiation fails this class provides a pre-configured default instance.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_STORAGE_PROVIDER_PROPERTY
Value is
org.apache.james.mime4j.defaultStorageProvider |
private static StorageProvider |
instance |
| Modifier | Constructor and Description |
|---|---|
private |
DefaultStorageProvider() |
| Modifier and Type | Method and Description |
|---|---|
static StorageProvider |
getInstance()
Returns the default
StorageProvider instance. |
private static void |
initialize() |
(package private) static void |
reset() |
static void |
setInstance(StorageProvider instance)
Sets the default
StorageProvider instance. |
public static final java.lang.String DEFAULT_STORAGE_PROVIDER_PROPERTY
org.apache.james.mime4j.defaultStorageProviderprivate static volatile StorageProvider instance
public static StorageProvider getInstance()
StorageProvider instance.StorageProvider instance.public static void setInstance(StorageProvider instance)
StorageProvider instance.instance - the default StorageProvider instance.private static void initialize()
static void reset()