public abstract class AbstractIdentityTestModule extends AbstractModule<AbstractIdentityTestModule> implements IdentityTestModuleMXBean, CheckedAutoCloseableServiceInterface, RuntimeBeanRegistratorAwareModule
Modifier and Type | Field and Description |
---|---|
static JmxAttribute |
afiJmxAttribute |
static JmxAttribute |
identitiesContainerJmxAttribute |
static JmxAttribute |
identitiesJmxAttribute |
dependencyResolver, identifier
Constructor and Description |
---|
AbstractIdentityTestModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver) |
AbstractIdentityTestModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver,
AbstractIdentityTestModule oldModule,
AutoCloseable oldInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReuseInstance(AbstractIdentityTestModule oldModule)
Users are welcome to override this method to provide custom logic for
advanced reusability detection.
|
protected void |
customValidation() |
boolean |
equals(Object o) |
IdentityAttributeRef |
getAfi() |
Class<? extends TestIdentity1> |
getAfiIdentity() |
List<Identities> |
getIdentities() |
IdentitiesContainer |
getIdentitiesContainer() |
org.slf4j.Logger |
getLogger() |
IdentityTestRuntimeRegistrator |
getRootRuntimeBeanRegistratorWrapper() |
int |
hashCode() |
boolean |
isSame(AbstractIdentityTestModule 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 |
setAfi(Class<? extends TestIdentity1> afiIdentityClass) |
void |
setAfi(IdentityAttributeRef afi) |
void |
setIdentities(List<Identities> identities) |
void |
setIdentitiesContainer(IdentitiesContainer identitiesContainer) |
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 static final JmxAttribute identitiesJmxAttribute
public static final JmxAttribute afiJmxAttribute
public static final JmxAttribute identitiesContainerJmxAttribute
public AbstractIdentityTestModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver)
public AbstractIdentityTestModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver, AbstractIdentityTestModule oldModule, AutoCloseable oldInstance)
public IdentityTestRuntimeRegistrator 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<AbstractIdentityTestModule>
public boolean canReuseInstance(AbstractIdentityTestModule oldModule)
AbstractModule
canReuseInstance
in class AbstractModule<AbstractIdentityTestModule>
oldModule
- old instance of a Modulepublic AutoCloseable reuseInstance(AutoCloseable oldInstance)
AbstractModule
reuseInstance
in class AbstractModule<AbstractIdentityTestModule>
oldInstance
- old instance of a class wrapped by the modulepublic boolean isSame(AbstractIdentityTestModule other)
public List<Identities> getIdentities()
getIdentities
in interface IdentityTestModuleMXBean
public void setIdentities(List<Identities> identities)
setIdentities
in interface IdentityTestModuleMXBean
public Class<? extends TestIdentity1> getAfiIdentity()
public void setAfi(Class<? extends TestIdentity1> afiIdentityClass)
public IdentityAttributeRef getAfi()
getAfi
in interface IdentityTestModuleMXBean
public void setAfi(IdentityAttributeRef afi)
setAfi
in interface IdentityTestModuleMXBean
public IdentitiesContainer getIdentitiesContainer()
getIdentitiesContainer
in interface IdentityTestModuleMXBean
public void setIdentitiesContainer(IdentitiesContainer identitiesContainer)
setIdentitiesContainer
in interface IdentityTestModuleMXBean
public org.slf4j.Logger getLogger()
Copyright © 2019 OpenDaylight. All rights reserved.