Class IncrementableProvider
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.configuration.provider.HierarchicalConfigProvider<T>
-
- edu.uiuc.ncsa.security.core.configuration.provider.TypedProvider<Incrementable>
-
- org.cilogon.oauth2.servlet.storage.sequence.IncrementableProvider
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.configuration.provider.CfgEventListener
,EventListener
,javax.inject.Provider<Incrementable>
- Direct Known Subclasses:
DerbySequenceProvider
,FSSequenceProvider
,MySQLSequenceProvider
,PGSequenceProvider
public abstract class IncrementableProvider extends edu.uiuc.ncsa.security.core.configuration.provider.TypedProvider<Incrementable>
Supplies a single incrementable, e.g., subclasses exist for file, sql-backed, etc.Created by Jeff Gaynor
on 3/20/12 at 9:52 AM
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IncrementableProvider(org.apache.commons.configuration.tree.ConfigurationNode config, String type)
IncrementableProvider(org.apache.commons.configuration.tree.ConfigurationNode config, String type, edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvider<? extends edu.uiuc.ncsa.security.storage.sql.ConnectionPool> connectionPoolProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
componentFound(edu.uiuc.ncsa.security.core.configuration.provider.CfgEvent configurationEvent)
protected edu.uiuc.ncsa.security.storage.sql.ConnectionPool
getConnectionPool()
String
getPrefix()
String
getSchema()
String
getTablename()
Return the configured tablename if there is one, otherwise return the default.-
Methods inherited from class edu.uiuc.ncsa.security.core.configuration.provider.TypedProvider
checkEvent, getTarget, getType, getTypeAttribute, getTypeAttribute, getTypeBooleanAttribute, getTypeConfig, getTypeIntAttribute, getTypeIntAttribute, setTarget, setType, setTypeConfig, toString
-
Methods inherited from class edu.uiuc.ncsa.security.core.configuration.provider.HierarchicalConfigProvider
addListener, fireComponentFound, getAttribute, getAttribute, getBooleanAttribute, getConfig, getConfigurationAt, getIntAttribute, getIntAttribute, getListeners, hasA, isA, removeListener, setConfig
-
-
-
-
Constructor Detail
-
IncrementableProvider
protected IncrementableProvider(org.apache.commons.configuration.tree.ConfigurationNode config, String type)
-
IncrementableProvider
public IncrementableProvider(org.apache.commons.configuration.tree.ConfigurationNode config, String type, edu.uiuc.ncsa.security.storage.sql.ConnectionPoolProvider<? extends edu.uiuc.ncsa.security.storage.sql.ConnectionPool> connectionPoolProvider)
-
-
Method Detail
-
getConnectionPool
protected edu.uiuc.ncsa.security.storage.sql.ConnectionPool getConnectionPool()
-
componentFound
public Object componentFound(edu.uiuc.ncsa.security.core.configuration.provider.CfgEvent configurationEvent)
-
getSchema
public String getSchema()
-
getPrefix
public String getPrefix()
-
getTablename
public String getTablename()
Return the configured tablename if there is one, otherwise return the default.- Returns:
-
-