public abstract class AbstractBindingNotificationAdapterModule extends AbstractModule<AbstractBindingNotificationAdapterModule> implements BindingNotificationAdapterModuleMXBean, NotificationServiceServiceInterface
Modifier and Type | Field and Description |
---|---|
static JmxAttribute |
bindingMappingServiceJmxAttribute |
static JmxAttribute |
domAsyncBrokerJmxAttribute |
dependencyResolver, identifier
Constructor and Description |
---|
AbstractBindingNotificationAdapterModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver) |
AbstractBindingNotificationAdapterModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver,
AbstractBindingNotificationAdapterModule oldModule,
AutoCloseable oldInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReuseInstance(AbstractBindingNotificationAdapterModule oldModule)
Users are welcome to override this method to provide custom logic for
advanced reusability detection.
|
protected void |
customValidation() |
boolean |
equals(Object o) |
ObjectName |
getBindingMappingService() |
protected BindingToNormalizedNodeCodec |
getBindingMappingServiceDependency() |
ObjectName |
getDomAsyncBroker() |
protected Broker |
getDomAsyncBrokerDependency() |
org.slf4j.Logger |
getLogger() |
int |
hashCode() |
boolean |
isSame(AbstractBindingNotificationAdapterModule 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 |
setBindingMappingService(ObjectName bindingMappingService) |
void |
setDomAsyncBroker(ObjectName domAsyncBroker) |
void |
validate()
This method will be called as first phase in two phase commit.
|
canReuse, createInstance, getIdentifier, getInstance, setCanReuseInstance
public static final JmxAttribute domAsyncBrokerJmxAttribute
public static final JmxAttribute bindingMappingServiceJmxAttribute
public AbstractBindingNotificationAdapterModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver)
public AbstractBindingNotificationAdapterModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver, AbstractBindingNotificationAdapterModule 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 Broker getDomAsyncBrokerDependency()
protected final BindingToNormalizedNodeCodec getBindingMappingServiceDependency()
protected final void resolveDependencies()
AbstractModule
resolveDependencies
in class AbstractModule<AbstractBindingNotificationAdapterModule>
public boolean canReuseInstance(AbstractBindingNotificationAdapterModule oldModule)
AbstractModule
canReuseInstance
in class AbstractModule<AbstractBindingNotificationAdapterModule>
oldModule
- old instance of a Modulepublic AutoCloseable reuseInstance(AutoCloseable oldInstance)
AbstractModule
reuseInstance
in class AbstractModule<AbstractBindingNotificationAdapterModule>
oldInstance
- old instance of a class wrapped by the modulepublic boolean isSame(AbstractBindingNotificationAdapterModule other)
public ObjectName getDomAsyncBroker()
getDomAsyncBroker
in interface BindingNotificationAdapterModuleMXBean
public void setDomAsyncBroker(ObjectName domAsyncBroker)
setDomAsyncBroker
in interface BindingNotificationAdapterModuleMXBean
public ObjectName getBindingMappingService()
getBindingMappingService
in interface BindingNotificationAdapterModuleMXBean
public void setBindingMappingService(ObjectName bindingMappingService)
setBindingMappingService
in interface BindingNotificationAdapterModuleMXBean
public org.slf4j.Logger getLogger()
Copyright © 2019 OpenDaylight. All rights reserved.