Class AbstractConfigurationLoader<T extends ServiceEnvironmentImpl>
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.LoggingConfigLoader<T>
-
- org.oa4mp.delegation.common.servlet.DBConfigLoader<T>
-
- org.oa4mp.server.api.storage.servlet.AbstractConfigurationLoader<T>
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.util.ConfigurationLoader<T>,edu.uiuc.ncsa.security.core.Version,Serializable,ConfigurationLoaderInterface
public abstract class AbstractConfigurationLoader<T extends ServiceEnvironmentImpl> extends org.oa4mp.delegation.common.servlet.DBConfigLoader<T> implements ConfigurationLoaderInterface
All servers configuration loaders should extend this.Created by Jeff Gaynor
on 4/26/12 at 1:18 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthorizationServletConfigauthorizationServletConfigprotected MultiDSClientApprovalStoreProvidercaspprotected MultiDSClientStoreProvidercspprotected ServiceEnvironmentImpl.MessagesProvidermessagesProviderprotected MultiDSPermissionStoreProvidermppprotected edu.uiuc.ncsa.security.util.mail.MailUtilProvidermupprotected javax.inject.Provider<org.oa4mp.delegation.common.storage.TransactionStore>tsp-
Fields inherited from class org.oa4mp.delegation.common.servlet.DBConfigLoader
derbyConnectionPoolProvider
-
-
Constructor Summary
Constructors Constructor Description AbstractConfigurationLoader(org.apache.commons.configuration.tree.ConfigurationNode node)AbstractConfigurationLoader(org.apache.commons.configuration.tree.ConfigurationNode node, edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TcreateInstance()AuthorizationServletConfiggetAuthorizationServletConfig()protected MultiDSClientApprovalStoreProvidergetCASP()protected abstract MultiDSClientStoreProvidergetCSP()protected edu.uiuc.ncsa.security.util.mail.MailUtilProvidergetMailUtilProvider()intgetMaxAllowedNewClientRequests()protected ServiceEnvironmentImpl.MessagesProvidergetMP()protected MultiDSPermissionStoreProvidergetMpp()protected booleangetPingable()URIgetServiceAddress()protected javax.inject.Provider<org.oa4mp.delegation.common.storage.TransactionStore>getTSP()edu.uiuc.ncsa.security.servlet.UsernameTransformergetUsernameTransformer()protected voidinitialize()This has things that need to be executed before other code, e.g. setting up schemes for creating identifiers.Tload()Object[]loadPolling()Returns the polling directory and polling interval (resp. a file and a long, so they come back as objects).-
Methods inherited from class org.oa4mp.delegation.common.servlet.DBConfigLoader
getDerbyConnectionPoolProvider, getDerbyConnectionPoolProvider, getMariaDBConnectionPoolProvider, getMariaDBConnectionPoolProvider, getMySQLConnectionPoolProvider, getMySQLConnectionPoolProvider, getPgConnectionPoolProvider, getPgConnectionPoolProvider, isDefaultStoreDisabled
-
Methods inherited from class edu.uiuc.ncsa.security.core.util.LoggingConfigLoader
debug, getDebugger, getLoggerProvider, getMyLogger, getVersionString, info, setLoggerProvider, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.oa4mp.server.api.storage.servlet.ConfigurationLoaderInterface
getAGIProvider, getATIProvider, getClientApprovalStoreProvider, getClientProvider, getClientStoreProvider, getConstants, getPAIProvider, getTokenForgeProvider, getTransactionStoreProvider
-
-
-
-
Field Detail
-
csp
protected MultiDSClientStoreProvider csp
-
casp
protected MultiDSClientApprovalStoreProvider casp
-
mup
protected edu.uiuc.ncsa.security.util.mail.MailUtilProvider mup
-
mpp
protected MultiDSPermissionStoreProvider mpp
-
messagesProvider
protected ServiceEnvironmentImpl.MessagesProvider messagesProvider
-
authorizationServletConfig
protected AuthorizationServletConfig authorizationServletConfig
-
tsp
protected javax.inject.Provider<org.oa4mp.delegation.common.storage.TransactionStore> tsp
-
-
Constructor Detail
-
AbstractConfigurationLoader
public AbstractConfigurationLoader(org.apache.commons.configuration.tree.ConfigurationNode node, edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
-
AbstractConfigurationLoader
public AbstractConfigurationLoader(org.apache.commons.configuration.tree.ConfigurationNode node)
-
-
Method Detail
-
getAuthorizationServletConfig
public AuthorizationServletConfig getAuthorizationServletConfig()
-
initialize
protected void initialize()
This has things that need to be executed before other code, e.g. setting up schemes for creating identifiers.- Throws:
Exception
-
loadPolling
public Object[] loadPolling()
Returns the polling directory and polling interval (resp. a file and a long, so they come back as objects). This can be called independently of the rest of the bootstrap.- Returns:
-
getTSP
protected javax.inject.Provider<org.oa4mp.delegation.common.storage.TransactionStore> getTSP()
-
getCSP
protected abstract MultiDSClientStoreProvider getCSP()
-
getMpp
protected MultiDSPermissionStoreProvider getMpp()
-
getCASP
protected MultiDSClientApprovalStoreProvider getCASP()
-
getMailUtilProvider
protected edu.uiuc.ncsa.security.util.mail.MailUtilProvider getMailUtilProvider()
-
getMP
protected ServiceEnvironmentImpl.MessagesProvider getMP()
-
createInstance
public T createInstance()
- Specified by:
createInstancein interfaceedu.uiuc.ncsa.security.core.util.ConfigurationLoader<T extends ServiceEnvironmentImpl>
-
getPingable
protected boolean getPingable()
-
getMaxAllowedNewClientRequests
public int getMaxAllowedNewClientRequests()
-
getServiceAddress
public URI getServiceAddress()
-
getUsernameTransformer
public edu.uiuc.ncsa.security.servlet.UsernameTransformer getUsernameTransformer()
-
load
public T load()
- Specified by:
loadin interfaceedu.uiuc.ncsa.security.core.util.ConfigurationLoader<T extends ServiceEnvironmentImpl>
-
-