org.apache.directory.server.schema.bootstrap
Interface BootstrapProducer

All Known Implementing Classes:
AbstractBootstrapProducer, ApacheAttributeTypeProducer, ApacheComparatorProducer, ApacheDitContentRuleProducer, ApacheDitStructureRuleProducer, ApacheMatchingRuleProducer, ApacheMatchingRuleUseProducer, ApachemetaAttributeTypeProducer, ApachemetaComparatorProducer, ApachemetaDitContentRuleProducer, ApachemetaDitStructureRuleProducer, ApachemetaMatchingRuleProducer, ApachemetaMatchingRuleUseProducer, ApachemetaNameFormProducer, ApachemetaNormalizerProducer, ApachemetaObjectClassProducer, ApachemetaSyntaxCheckerProducer, ApachemetaSyntaxProducer, ApacheNameFormProducer, ApacheNormalizerProducer, ApacheObjectClassProducer, ApacheSyntaxCheckerProducer, ApacheSyntaxProducer, CoreAttributeTypeProducer, CoreComparatorProducer, CoreDitContentRuleProducer, CoreDitStructureRuleProducer, CoreMatchingRuleProducer, CoreMatchingRuleUseProducer, CoreNameFormProducer, CoreNormalizerProducer, CoreObjectClassProducer, CoreSyntaxCheckerProducer, CoreSyntaxProducer, SystemAttributeTypeProducer, SystemComparatorProducer, SystemDitContentRuleProducer, SystemDitStructureRuleProducer, SystemMatchingRuleProducer, SystemMatchingRuleUseProducer, SystemNameFormProducer, SystemNormalizerProducer, SystemObjectClassProducer, SystemSyntaxCheckerProducer, SystemSyntaxProducer

public interface BootstrapProducer

A schema object producer which uses a callback to announce object creation rather than completely returning objects in bulk. This way registries can be populated while the producer is doing is creating schema objects.

Version:
$Rev: 491471 $
Author:
Apache Directory Project

Method Summary
 org.apache.directory.server.schema.bootstrap.ProducerTypeEnum getType()
          Gets the type of producer this is.
 void produce(org.apache.directory.server.schema.registries.Registries registries, ProducerCallback cb)
          Produces schema objects announcing each one after creation via the callback before continuing on to create more objects.
 

Method Detail

getType

org.apache.directory.server.schema.bootstrap.ProducerTypeEnum getType()
Gets the type of producer this is.

Returns:
the type of the BootstrapProducer as a enum

produce

void produce(org.apache.directory.server.schema.registries.Registries registries,
             ProducerCallback cb)
             throws javax.naming.NamingException
Produces schema objects announcing each one after creation via the callback before continuing on to create more objects.

Parameters:
registries - the registry set used by this producer
cb - the producer's callback
Throws:
javax.naming.NamingException - callbacks often operate upon registries and can throw these exceptions so we must throw this as well since implementations will have to call the callback methods


Copyright © 2003-2007 The Apache Software Foundation. All Rights Reserved.