public class EntityStoreFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DBG_ES_TYPE_FACTORY |
static java.lang.String |
PROVIDERS_FILENAME
Load the configured providers
|
Modifier and Type | Method and Description |
---|---|
EntityStore |
getEntityStoreForURL(java.lang.String url)
Retrieve an instance of an EntityStore which is compatible with
the url specified
|
EntityTypeFactory |
getEntityTypeFactory() |
static EntityStoreFactory |
getInstance() |
java.lang.String[] |
getPropsForURL(java.lang.String url) |
boolean |
initializeProviders(java.io.InputStream providerConfigStream)
Allow the user to explicitly initialize the Entity Store provider classes
|
void |
registerEntityTypeFactory(EntityTypeFactory f) |
void |
registerForURL(java.lang.String urlPattern,
java.lang.Class provider,
java.util.List<java.lang.String> reqCredentials)
Register an implementation of EntityStore for a particular URL stem
|
public static final java.lang.String DBG_ES_TYPE_FACTORY
public static final java.lang.String PROVIDERS_FILENAME
public boolean initializeProviders(java.io.InputStream providerConfigStream)
providerConfigStream
- An xml stream that specifies which ES provider classes to
load. Allows us to initialize the factory outside the context
of a VordelSecure installation. See the
'$VDISTDIR/conf/esproviders.xml' file for an example.public static final EntityStoreFactory getInstance()
public final void registerForURL(java.lang.String urlPattern, java.lang.Class provider, java.util.List<java.lang.String> reqCredentials)
urlPattern
- The URL stem for which the provider is responsibleprovider
- The class to instantiate for the URLpublic EntityStore getEntityStoreForURL(java.lang.String url) throws EntityStoreException
url
- The connection string for a particular flavor of ESEntityStoreException
- if the factory was unable to find a suitable
provider for the URL specified.public java.lang.String[] getPropsForURL(java.lang.String url)
public EntityTypeFactory getEntityTypeFactory()
public void registerEntityTypeFactory(EntityTypeFactory f)
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel