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

All Known Implementing Classes:
AbstractBootstrapProducer, ApacheComparatorProducer, ApacheMatchingRuleProducer, ApacheNormalizerProducer, InetorgpersonComparatorProducer, InetorgpersonMatchingRuleProducer, InetorgpersonNormalizerProducer, NisComparatorProducer, NisMatchingRuleProducer, NisNormalizerProducer, NisSyntaxCheckerProducer, NisSyntaxProducer, SystemComparatorProducer, SystemMatchingRuleProducer, SystemNormalizerProducer, 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: 434579 $
Author:
Apache Directory Project

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

Method Detail

getType

ProducerTypeEnum getType()
Gets the type of producer this is.

Returns:
the type of the BootstrapProducer as a enum

produce

void produce(BootstrapRegistries 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-2009 Apache Software Foundation. All Rights Reserved.