public abstract class AbstractRuntimeMappingModule extends AbstractModule<AbstractRuntimeMappingModule> implements RuntimeMappingModuleMXBean, BindingCodecTreeFactoryServiceInterface, BindingNormalizedNodeSerializerServiceInterface, BindingToNormalizedNodeCodecServiceInterface, BindingCodecTreeFactoryServiceInterface, BindingNormalizedNodeSerializerServiceInterface
Modifier and Type | Field and Description |
---|---|
static JmxAttribute |
waitForSchemaJmxAttribute |
dependencyResolver, identifier
Constructor and Description |
---|
AbstractRuntimeMappingModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver) |
AbstractRuntimeMappingModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver,
AbstractRuntimeMappingModule oldModule,
AutoCloseable oldInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReuseInstance(AbstractRuntimeMappingModule oldModule)
Users are welcome to override this method to provide custom logic for
advanced reusability detection.
|
protected void |
customValidation() |
boolean |
equals(Object o) |
org.slf4j.Logger |
getLogger() |
Boolean |
getWaitForSchema() |
int |
hashCode() |
boolean |
isSame(AbstractRuntimeMappingModule other) |
protected void |
resolveDependencies()
Inject all the dependencies using dependency resolver instance.
|
AutoCloseable |
reuseInstance(AutoCloseable oldInstance)
By default the oldInstance is returned since this method is by default called
only if the oldModule had the same configuration and dependencies configured.
|
void |
setWaitForSchema(Boolean waitForSchema) |
void |
validate()
This method will be called as first phase in two phase commit.
|
canReuse, createInstance, getIdentifier, getInstance, setCanReuseInstance
public static final JmxAttribute waitForSchemaJmxAttribute
public AbstractRuntimeMappingModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver)
public AbstractRuntimeMappingModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver, AbstractRuntimeMappingModule oldModule, AutoCloseable oldInstance)
public void validate()
Module
Module.getInstance()
on
dependent Module
because it would destroy separation between
validation and commit phase.protected void customValidation()
protected final void resolveDependencies()
AbstractModule
resolveDependencies
in class AbstractModule<AbstractRuntimeMappingModule>
public boolean canReuseInstance(AbstractRuntimeMappingModule oldModule)
AbstractModule
canReuseInstance
in class AbstractModule<AbstractRuntimeMappingModule>
oldModule
- old instance of a Modulepublic AutoCloseable reuseInstance(AutoCloseable oldInstance)
AbstractModule
reuseInstance
in class AbstractModule<AbstractRuntimeMappingModule>
oldInstance
- old instance of a class wrapped by the modulepublic boolean isSame(AbstractRuntimeMappingModule other)
public Boolean getWaitForSchema()
getWaitForSchema
in interface RuntimeMappingModuleMXBean
public void setWaitForSchema(Boolean waitForSchema)
setWaitForSchema
in interface RuntimeMappingModuleMXBean
public org.slf4j.Logger getLogger()
Copyright © 2019 OpenDaylight. All rights reserved.