|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.schema.bootstrap.BootstrapSchemaLoader
public class BootstrapSchemaLoader
Class which handles bootstrap schema class file loading.
Constructor Summary | |
---|---|
BootstrapSchemaLoader()
Creates a BootstrapSchema loader. |
Method Summary | |
---|---|
void |
load(BootstrapSchema schema,
BootstrapRegistries registries)
Loads a schema by loading and running all producers for te schema. |
void |
load(java.util.Collection bootstrapSchemas,
BootstrapRegistries registries)
Loads a set of schemas by loading and running all producers for each dependent schema first. |
void |
loadDepsFirst(java.util.Stack beenthere,
java.util.HashMap notLoaded,
BootstrapSchema schema,
BootstrapRegistries registries)
Recursive method which loads schema's with their dependent schemas first and tracks what schemas it has seen so the recursion does not go out of control with depenency cycle detection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BootstrapSchemaLoader()
Method Detail |
---|
public final void load(java.util.Collection bootstrapSchemas, BootstrapRegistries registries) throws javax.naming.NamingException
bootstrapSchemas
- Collection of BootstrapSchema
s to loadregistries
- the registries to fill with producer created objects
javax.naming.NamingException
- if there are any failures during this processpublic final void loadDepsFirst(java.util.Stack beenthere, java.util.HashMap notLoaded, BootstrapSchema schema, BootstrapRegistries registries) throws javax.naming.NamingException
beenthere
- stack of schema names we have visited and have yet to loadnotLoaded
- hash of schemas keyed by name which have yet to be loadedschema
- the current schema we are attempting to loadregistries
- the set of registries to use while loading
javax.naming.NamingException
- if there is a cycle detected and/or another
failure results while loading, producing and or registering schema objectspublic final void load(BootstrapSchema schema, BootstrapRegistries registries) throws javax.naming.NamingException
schema
- the schema to loadregistries
- the registries to fill with producer created objects
javax.naming.NamingException
- if there are any failures during this process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |