public abstract class AbstractTestImplModule extends AbstractModule<AbstractTestImplModule> implements TestImplModuleMXBean, CheckedAutoCloseableServiceInterface, RuntimeBeanRegistratorAwareModule
Modifier and Type | Field and Description |
---|---|
static JmxAttribute |
allowUserJmxAttribute |
static JmxAttribute |
asNumberJmxAttribute |
static JmxAttribute |
dtoAJmxAttribute |
static JmxAttribute |
dtoBJmxAttribute |
static JmxAttribute |
simpleIntJmxAttribute |
dependencyResolver, identifier
Constructor and Description |
---|
AbstractTestImplModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver) |
AbstractTestImplModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver,
AbstractTestImplModule oldModule,
AutoCloseable oldInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReuseInstance(AbstractTestImplModule oldModule)
Users are welcome to override this method to provide custom logic for
advanced reusability detection.
|
protected void |
customValidation() |
boolean |
equals(Object o) |
List<String> |
getAllowUser() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber |
getAsNumber() |
DtoA |
getDtoA() |
DtoB |
getDtoB() |
org.slf4j.Logger |
getLogger() |
TestImplRuntimeRegistrator |
getRootRuntimeBeanRegistratorWrapper() |
Long |
getSimpleInt() |
int |
hashCode() |
boolean |
isSame(AbstractTestImplModule 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 |
setAllowUser(List<String> allowUser)
A list of user name patterns to allow
|
void |
setAsNumber(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber asNumber) |
void |
setDtoA(DtoA dtoA) |
void |
setDtoB(DtoB dtoB) |
void |
setRuntimeBeanRegistrator(RootRuntimeBeanRegistrator rootRuntimeRegistrator)
Configuration framework will call this setter on all modules implementing
this interface.
|
void |
setSimpleInt(Long simpleInt) |
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 asNumberJmxAttribute
public static final JmxAttribute dtoAJmxAttribute
public static final JmxAttribute dtoBJmxAttribute
public static final JmxAttribute allowUserJmxAttribute
public static final JmxAttribute simpleIntJmxAttribute
public AbstractTestImplModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver)
public AbstractTestImplModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver, AbstractTestImplModule oldModule, AutoCloseable oldInstance)
public TestImplRuntimeRegistrator 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<AbstractTestImplModule>
public boolean canReuseInstance(AbstractTestImplModule oldModule)
AbstractModule
canReuseInstance
in class AbstractModule<AbstractTestImplModule>
oldModule
- old instance of a Modulepublic AutoCloseable reuseInstance(AutoCloseable oldInstance)
AbstractModule
reuseInstance
in class AbstractModule<AbstractTestImplModule>
oldInstance
- old instance of a class wrapped by the modulepublic boolean isSame(AbstractTestImplModule other)
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getAsNumber()
getAsNumber
in interface TestImplModuleMXBean
public void setAsNumber(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber asNumber)
setAsNumber
in interface TestImplModuleMXBean
public DtoA getDtoA()
getDtoA
in interface TestImplModuleMXBean
public void setDtoA(DtoA dtoA)
setDtoA
in interface TestImplModuleMXBean
public DtoB getDtoB()
getDtoB
in interface TestImplModuleMXBean
public void setDtoB(DtoB dtoB)
setDtoB
in interface TestImplModuleMXBean
public List<String> getAllowUser()
getAllowUser
in interface TestImplModuleMXBean
public void setAllowUser(List<String> allowUser)
setAllowUser
in interface TestImplModuleMXBean
public Long getSimpleInt()
getSimpleInt
in interface TestImplModuleMXBean
public void setSimpleInt(Long simpleInt)
setSimpleInt
in interface TestImplModuleMXBean
public org.slf4j.Logger getLogger()
Copyright © 2019 OpenDaylight. All rights reserved.