public abstract class AbstractBindingNotificationPublishAdapterModule extends AbstractModule<AbstractBindingNotificationPublishAdapterModule> implements BindingNotificationPublishAdapterModuleMXBean, NotificationPublishServiceServiceInterface
Modifier and Type | Field and Description |
---|---|
static JmxAttribute |
bindingMappingServiceJmxAttribute |
static JmxAttribute |
domAsyncBrokerJmxAttribute |
dependencyResolver, identifier
Constructor and Description |
---|
AbstractBindingNotificationPublishAdapterModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver) |
AbstractBindingNotificationPublishAdapterModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver,
AbstractBindingNotificationPublishAdapterModule oldModule,
AutoCloseable oldInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReuseInstance(AbstractBindingNotificationPublishAdapterModule 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(AbstractBindingNotificationPublishAdapterModule 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 AbstractBindingNotificationPublishAdapterModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver)
public AbstractBindingNotificationPublishAdapterModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver, AbstractBindingNotificationPublishAdapterModule 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<AbstractBindingNotificationPublishAdapterModule>
public boolean canReuseInstance(AbstractBindingNotificationPublishAdapterModule oldModule)
AbstractModule
canReuseInstance
in class AbstractModule<AbstractBindingNotificationPublishAdapterModule>
oldModule
- old instance of a Modulepublic AutoCloseable reuseInstance(AutoCloseable oldInstance)
AbstractModule
reuseInstance
in class AbstractModule<AbstractBindingNotificationPublishAdapterModule>
oldInstance
- old instance of a class wrapped by the modulepublic boolean isSame(AbstractBindingNotificationPublishAdapterModule other)
public ObjectName getDomAsyncBroker()
getDomAsyncBroker
in interface BindingNotificationPublishAdapterModuleMXBean
public void setDomAsyncBroker(ObjectName domAsyncBroker)
setDomAsyncBroker
in interface BindingNotificationPublishAdapterModuleMXBean
public ObjectName getBindingMappingService()
getBindingMappingService
in interface BindingNotificationPublishAdapterModuleMXBean
public void setBindingMappingService(ObjectName bindingMappingService)
setBindingMappingService
in interface BindingNotificationPublishAdapterModuleMXBean
public org.slf4j.Logger getLogger()
Copyright © 2019 OpenDaylight. All rights reserved.