Interface QBitProducer
public interface QBitProducer
interface for how a QBit's meta-data gets produced and added to a QInstance.
When implementing a QBit, you'll implement this interface:
- adding a QBitConfig subclass as a property
- overriding the produce(qInstance, namespace) method - where you'll:
-- create and add your QBitMetaData
-- call MetaDataProducerHelper.findProducers
-- hand off to finishProducing() in this interface
When using a QBit, you'll create an instance of the QBit's config object,
pass it in to the producer, then call produce, ala:
new SomeQBitProducer()
.withQBitConfig(someQBitConfig)
.produce(qInstance);
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault <C extends QBitConfig>
voidfinishProducing
(QInstance qInstance, QBitMetaData qBitMetaData, C qBitConfig, List<MetaDataProducerInterface<?>> producers) default void
void
-
Field Details
-
LOG
-
-
Method Details
-
produce
- Throws:
QException
-
produce
- Throws:
QException
-
finishProducing
default <C extends QBitConfig> void finishProducing(QInstance qInstance, QBitMetaData qBitMetaData, C qBitConfig, List<MetaDataProducerInterface<?>> producers) throws QException - Throws:
QException
-