|
||||||||||
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
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). |
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 |
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 |
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 cachepublic 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 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 releaseCached(XMLSchema schema)
schema
- to release from cache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |