@NotThreadSafe public interface Module extends org.opendaylight.yangtools.concepts.Identifiable<ModuleIdentifier>
In order to guide dependency resolution, the setter method should be
annotated with
RequireInterface
.
Thread safety note: implementations of this interface are not required to be thread safe as thread safety is enforced by configuration manager.
Modifier and Type | Method and Description |
---|---|
boolean |
canReuse(Module oldModule)
Compare current module with oldModule and if the instance/live object
produced by the old module can be reused in this module as well return true.
|
AutoCloseable |
getInstance()
Returns 'live' object that was configured using this object.
|
void |
validate()
This method will be called as first phase in two phase commit.
|
void validate()
getInstance()
on
dependent Module
because it would destroy separation between
validation and commit phase.AutoCloseable getInstance()
boolean canReuse(Module oldModule)
oldModule
- old instance of ModuleCopyright © 2019 OpenDaylight. All rights reserved.