|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SchemaLoader
Loads schemas into registres.
Method Summary | |
---|---|
Schema |
getSchema(java.lang.String schemaName)
Gets a schema object based on it's name. |
Schema |
getSchema(java.lang.String schemaName,
java.util.Properties schemaProperties)
Gets a schema object based on it's name and some properties. |
void |
load(Schema schema,
Registries registries,
boolean isDepLoad)
Loads a single schema. |
void |
loadWithDependencies(java.util.Collection<Schema> schemas,
Registries registries)
Loads a collection of schemas. |
void |
loadWithDependencies(Schema schemas,
Registries registries)
Loads a single schema at least and possibly it's dependencies. |
void |
setListener(SchemaLoaderListener listener)
Sets listener used to notify of newly loaded schemas. |
Method Detail |
---|
void setListener(SchemaLoaderListener listener)
listener
- the listener to notify (only one is enough for us)Schema getSchema(java.lang.String schemaName) throws java.lang.Exception
schemaName
- the name of the schema to load
NamingException
- if any problems while trying to find the associated Schema
java.lang.Exception
Schema getSchema(java.lang.String schemaName, java.util.Properties schemaProperties) throws java.lang.Exception
schemaName
- the name of the schema to loadschemaProperties
- the properties associated with that schema to facilitate locating/loading it
NamingException
- if any problems while trying to find the associated Schema
java.lang.Exception
void loadWithDependencies(java.util.Collection<Schema> schemas, Registries registries) throws java.lang.Exception
schemas
- the collection of schemas to loadregistries
- the registries to populate with these schemas
NamingException
- if any kind of problems are encountered during the load
java.lang.Exception
void loadWithDependencies(Schema schemas, Registries registries) throws java.lang.Exception
schemas
- the schema to loadregistries
- the registries to populate with these schemas
NamingException
- if any kind of problems are encountered during the load
java.lang.Exception
void load(Schema schema, Registries registries, boolean isDepLoad) throws java.lang.Exception
schema
- the schema to loadregistries
- the registries to populate with these schemasisDepLoad
- tells the loader if this load request is to satisfy a dependency
NamingException
- if any kind of problems are encountered during the load
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |