public class DefaultRealmHandler extends StrolchComponent implements RealmHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
PREFIX_DATA_STORE_FILE |
static String |
PREFIX_DATA_STORE_MODE |
static String |
PROP_ENABLE_AUDIT_TRAIL |
static String |
PROP_ENABLE_AUDIT_TRAIL_FOR_READ |
static String |
PROP_ENABLE_OBSERVER_UPDATES |
static String |
PROP_ENABLE_VERSIONING |
static String |
PROP_REALMS |
protected Map<String,InternalStrolchRealm> |
realms |
COMPONENT_VERSION_PROPERTIES, logger| Constructor and Description |
|---|
DefaultRealmHandler(ComponentContainer container,
String componentName) |
| Modifier and Type | Method and Description |
|---|---|
StrolchRealm |
getRealm(String realm)
Returns the
StrolchRealm with the given name. |
Set<String> |
getRealmNames()
Returns the names of the configured
StrolchRealms |
void |
initialize(ComponentConfiguration configuration)
Life cycle step initialize.
|
void |
setup(ComponentConfiguration configuration)
Life cycle step setup.
|
void |
start()
Life cycle step start.
|
void |
stop()
Life cycle step stop.
|
assertContainerStarted, assertStarted, destroy, getConfiguration, getContainer, getName, getState, getVersion, runAs, runAs, runAsAgent, runAsAgent, runAsAgentWithResult, runAsAgentWithResult, runWithResult, runWithResultpublic static final String PROP_ENABLE_AUDIT_TRAIL
public static final String PROP_ENABLE_AUDIT_TRAIL_FOR_READ
public static final String PROP_ENABLE_OBSERVER_UPDATES
public static final String PROP_ENABLE_VERSIONING
public static final String PREFIX_DATA_STORE_MODE
public static final String PREFIX_DATA_STORE_FILE
public static final String PROP_REALMS
protected Map<String,InternalStrolchRealm> realms
public DefaultRealmHandler(ComponentContainer container, String componentName)
container - componentName - public Set<String> getRealmNames()
RealmHandlerStrolchRealmsgetRealmNames in interface RealmHandlerStrolchRealmspublic StrolchRealm getRealm(String realm) throws StrolchException
RealmHandlerStrolchRealm with the given name. To get the default realm, use the constante
StrolchConstants.DEFAULT_REALM.getRealm in interface RealmHandlerrealm - the name of the StrolchRealm to returnStrolchRealm with the given nameStrolchException - if the StrolchRealm does not exist with the given namepublic void setup(ComponentConfiguration configuration)
StrolchComponentsetup in class StrolchComponentpublic void initialize(ComponentConfiguration configuration) throws Exception
StrolchComponentinitialize in class StrolchComponentExceptionpublic void start()
throws Exception
StrolchComponentstart in class StrolchComponentExceptionpublic void stop()
throws Exception
StrolchComponentstop in class StrolchComponentExceptionCopyright © 2011–2016 Strolch. All rights reserved.