|
Vordel SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vordel.es.EntityStoreFactory
public class EntityStoreFactory
The place to come to when you want to get an
EntityStore which will understand your particular flavor of URL.
| Field Summary | |
|---|---|
static java.lang.String |
DBG_ES_TYPE_FACTORY
|
static java.lang.String |
PROVIDERS_FILENAME
Load the configured providers |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DBG_ES_TYPE_FACTORY
public static final java.lang.String PROVIDERS_FILENAME
| Method Detail |
|---|
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
'$VINSTDIR/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 URL
public EntityStore getEntityStoreForURL(java.lang.String url)
throws EntityStoreException
url - The connection string for a particular flavor of ES
EntityStoreException - 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)
|
Vordel SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||