Package org.opendaylight.yangtools.plugin.generator.api
@Export
package org.opendaylight.yangtools.plugin.generator.api
API exposed by generator plugins, i.e. pluggable pieces of code which want to create code (and other) files from an
EffectiveModelContext
.
The primary entry point is FileGeneratorFactory
, which
needs to be implemented for bootstrapping a particular generator. Such implementations are discovered using normal
discovery methods, for example they should always be published as ServiceLoader
services.
-
ClassDescriptionAbstract base class for
FileGeneratorFactory
implementations.Abstract base class forGeneratedFile
s.The contents of a generated file and itsGeneratedFileLifecycle
.Interface implemented by plugins which can generate files from aEffectiveModelContext
.EffectiveModelContext
can be assembled in multiple ways, we hold known modes here.An exception reporting a problem with file generation.AServiceLoader
factory for instantiatingFileGenerator
instances.The contents of a generated file and itsGeneratedFileLifecycle
.Lifecycle policy of a generated file.A relative path to a generated file.Type of generated file.An SPI-level interface to find the schema source for a particular YANG module, as packaged in the final artifact.