public abstract class AbstractSchemaServiceImplSingletonModule extends AbstractModule<AbstractSchemaServiceImplSingletonModule> implements SchemaServiceImplSingletonModuleMXBean, SchemaServiceServiceInterface, YangTextSourceProviderServiceInterface, RuntimeBeanRegistratorAwareModule
dependencyResolver, identifier
Constructor and Description |
---|
AbstractSchemaServiceImplSingletonModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver) |
AbstractSchemaServiceImplSingletonModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver,
AbstractSchemaServiceImplSingletonModule oldModule,
AutoCloseable oldInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReuseInstance(AbstractSchemaServiceImplSingletonModule 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() |
SchemaServiceImplSingletonRuntimeRegistrator |
getRootRuntimeBeanRegistratorWrapper() |
int |
hashCode() |
boolean |
isSame(AbstractSchemaServiceImplSingletonModule 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 |
setRuntimeBeanRegistrator(RootRuntimeBeanRegistrator rootRuntimeRegistrator)
Configuration framework will call this setter on all modules implementing
this interface.
|
void |
validate()
This method will be called as first phase in two phase commit.
|
canReuse, createInstance, getIdentifier, getInstance, setCanReuseInstance
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
canReuse, getInstance
public AbstractSchemaServiceImplSingletonModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver)
public AbstractSchemaServiceImplSingletonModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver, AbstractSchemaServiceImplSingletonModule oldModule, AutoCloseable oldInstance)
public SchemaServiceImplSingletonRuntimeRegistrator getRootRuntimeBeanRegistratorWrapper()
public void setRuntimeBeanRegistrator(RootRuntimeBeanRegistrator rootRuntimeRegistrator)
RuntimeBeanRegistratorAwareModule
Closeable.close()
method. Same
module will get the same registrator during reconfiguration.setRuntimeBeanRegistrator
in interface RuntimeBeanRegistratorAwareModule
rootRuntimeRegistrator
- root beanpublic 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<AbstractSchemaServiceImplSingletonModule>
public boolean canReuseInstance(AbstractSchemaServiceImplSingletonModule oldModule)
AbstractModule
canReuseInstance
in class AbstractModule<AbstractSchemaServiceImplSingletonModule>
oldModule
- old instance of a Modulepublic AutoCloseable reuseInstance(AutoCloseable oldInstance)
AbstractModule
reuseInstance
in class AbstractModule<AbstractSchemaServiceImplSingletonModule>
oldInstance
- old instance of a class wrapped by the modulepublic boolean isSame(AbstractSchemaServiceImplSingletonModule other)
public org.slf4j.Logger getLogger()
Copyright © 2019 OpenDaylight. All rights reserved.