|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.hivemind.impl.RegistryAssemblyImpl
Implementation of RegistryAssembly
.
Constructor Summary | |
RegistryAssemblyImpl(ErrorHandler errorHandler)
|
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) . |
boolean |
moreQueuedModules()
Returns true if there are yet more queued models to be parsed. |
ModuleDescriptor |
parseNextQueued(DescriptorParser parser)
Parses the next enqueued module descripotor and returns it. |
void |
performPostProcessing()
Invokes Runnable.run() on each Runnable
object previously stored using
addPostProcessor(Runnable) . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RegistryAssemblyImpl(ErrorHandler errorHandler)
Method Detail |
public void addSchema(java.lang.String schemaId, Schema schema)
RegistryAssembly
addSchema
in interface RegistryAssembly
schemaId
- fully qualified id for the schema.schema
- the Schema to be recorded for later referencepublic Schema getSchema(java.lang.String schemaId)
RegistryAssembly
RegistryAssembly.addSchema(String, Schema)
.
getSchema
in interface RegistryAssembly
schemaId
- fully qualified schema id
public void addPostProcessor(java.lang.Runnable postProcessor)
RegistryAssembly
Runnable
object that will be called after all
modules have been parsed. This is intended to support
support forward references to schemas.
addPostProcessor
in interface RegistryAssembly
public void performPostProcessing()
Runnable.run()
on each Runnable
object previously stored using
addPostProcessor(Runnable)
.
public void enqueueModuleParse(Resource resource, ClassResolver resolver)
RegistryAssembly
enqueueModuleParse
in interface RegistryAssembly
public boolean moreQueuedModules()
public ModuleDescriptor parseNextQueued(DescriptorParser parser)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |