org.apache.hivemind.impl
Interface RegistryAssembly

All Known Implementing Classes:
RegistryAssemblyImpl

public interface RegistryAssembly

Interfaced used during the construnction of the Registry.

Author:
Howard Lewis Ship

Method Summary
 void addPostProcessor(java.lang.Runnable postProcessor)
          Adds a Runnable object that will be called after all modules have been parsed.
 void addSchema(java.lang.String schemaId, Schema schema)
          Records a schema that may be referenced elsewhere within a module, or by some other module entirely.
 void enqueueModuleParse(Resource resource, ClassResolver resolver)
          Enqueues another module to be parsed.
 Schema getSchema(java.lang.String schemaId)
          Returns a reference to a schema previously recorded by addSchema(String, Schema).
 

Method Detail

addSchema

public void addSchema(java.lang.String schemaId,
                      Schema schema)
Records a schema that may be referenced elsewhere within a module, or by some other module entirely.

Parameters:
schemaId - fully qualified id for the schema.
schema - the Schema to be recorded for later reference

getSchema

public Schema getSchema(java.lang.String schemaId)
Returns a reference to a schema previously recorded by addSchema(String, Schema).

Parameters:
schemaId - fully qualified schema id
Returns:
the schema, or null if no such schema exists

addPostProcessor

public void addPostProcessor(java.lang.Runnable postProcessor)
Adds a Runnable object that will be called after all modules have been parsed. This is intended to support support forward references to schemas.


enqueueModuleParse

public void enqueueModuleParse(Resource resource,
                               ClassResolver resolver)
Enqueues another module to be parsed.