public class StandaloneConfiguration extends Configuration implements ApplicationPolicyRegistration
Configuration
extended with ApplicationPolicy
registration
To instantiate, use the getInstance()
method as this class acts
as a singletonConfiguration.Parameters
Modifier and Type | Field and Description |
---|---|
protected static StandaloneConfiguration |
_instance
Singleton instance
|
protected ConcurrentMap<String,ApplicationPolicy> |
appPolicyMap |
protected Configuration |
parentConfig
The inherited configuration we delegate to
|
Modifier | Constructor and Description |
---|---|
protected |
StandaloneConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addApplicationPolicy(String appName,
ApplicationPolicy aPolicy)
Register an application policy
|
AppConfigurationEntry[] |
getAppConfigurationEntry(String appName) |
ApplicationPolicy |
getApplicationPolicy(String domainName)
Get the Application Policy given the security domain name
|
static StandaloneConfiguration |
getInstance() |
boolean |
removeApplicationPolicy(String domainName)
Unregister an Application Policy for a security domain
|
void |
setParentConfig(Configuration parentConfig)
Set the Parent Configuration to which we can delegate
|
getConfiguration, getInstance, getInstance, getInstance, getParameters, getProvider, getType, refresh, setConfiguration
protected Configuration parentConfig
protected ConcurrentMap<String,ApplicationPolicy> appPolicyMap
protected static StandaloneConfiguration _instance
public static StandaloneConfiguration getInstance()
public void addApplicationPolicy(String appName, ApplicationPolicy aPolicy)
ApplicationPolicyRegistration
addApplicationPolicy
in interface ApplicationPolicyRegistration
appName
- Security Domain NameaPolicy
- Application Policy to registerApplicationPolicyRegistration#addApplicationPolicy(String, ApplicationPolicy)}
public ApplicationPolicy getApplicationPolicy(String domainName)
ApplicationPolicyRegistration
getApplicationPolicy
in interface ApplicationPolicyRegistration
domainName
- security domain nameApplicationPolicyRegistration#getApplicationPolicy(String)}
public boolean removeApplicationPolicy(String domainName)
ApplicationPolicyRegistration
removeApplicationPolicy
in interface ApplicationPolicyRegistration
ApplicationPolicyRegistration#removeApplicationPolicy(String)}
public void setParentConfig(Configuration parentConfig)
parentConfig
- public AppConfigurationEntry[] getAppConfigurationEntry(String appName)
getAppConfigurationEntry
in class Configuration
Copyright © 2019 JBoss by Red Hat. All rights reserved.