|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jaxfront.core.util.io.cache.XMLSchemaCache
public class XMLSchemaCache
| Field Summary | |
|---|---|
static java.lang.String |
IS_SCHEMA_INIT_MODE
|
| Constructor Summary | |
|---|---|
XMLSchemaCache()
|
|
| Method Summary | |
|---|---|
XMLSchema |
cache(java.lang.String context,
java.lang.String key,
XMLSchema schema)
Cache an XMLSchema based on a key (file location url). |
XMLSchema |
cache(java.lang.String context,
java.net.URL schemaURL,
XMLSchema schema)
Cache an XMLSchema based on a key (file location url). |
void |
flushSyncedState()
|
void |
flushSyncedState(java.lang.String startsWith)
|
XMLSchema |
getCached(java.lang.String key)
Returns the cached XMLSchema for a key if any. |
XMLSchema |
getCached(java.net.URL schemaURL)
Returns the cached XMLSchema for a key if any. |
static XMLSchemaCache |
getInstance()
Returns single XMLSchemaBuilder implementation. |
java.util.Hashtable |
getSchemaCache()
|
void |
releaseCache()
Release all cached XMLSchemas. |
void |
releaseCache(java.lang.String startsWith)
|
void |
releaseCached(XMLSchema schema)
Release the cache for the passed schema. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String IS_SCHEMA_INIT_MODE
| Constructor Detail |
|---|
public XMLSchemaCache()
| Method Detail |
|---|
public XMLSchema cache(java.lang.String context,
java.lang.String key,
XMLSchema schema)
key - to identify schema in the cacheschema - XMLSchem to put to the cache
public XMLSchema cache(java.lang.String context,
java.net.URL schemaURL,
XMLSchema schema)
context - needed for client-capable systems for the ability to identify the right properties (jaxfront.xml )key - to identify schema in the cacheschema - XMLSchem to put to the cachepublic void flushSyncedState()
public void flushSyncedState(java.lang.String startsWith)
public XMLSchema getCached(java.lang.String key)
key - to identify schema in the cachepublic XMLSchema getCached(java.net.URL schemaURL)
key - to identify schema in the cachepublic static XMLSchemaCache getInstance()
public java.util.Hashtable getSchemaCache()
public void releaseCache()
public void releaseCache(java.lang.String startsWith)
public void releaseCached(XMLSchema schema)
schema - to release from cache
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||