@Override
public synchronized void instantiateServiceInstance() {
LOG.info("PCEP Topology Provider Singleton Service {} instantiated", getIdentifier().getValue());
- if (this.pcepTopoProvider != null) {
- this.pcepTopoProvider.instantiateServiceInstance();
- this.serviceInstantiated = true;
- }
+ this.pcepTopoProvider.instantiateServiceInstance();
+ this.serviceInstantiated = true;
}
@Override
public synchronized ListenableFuture<Void> closeServiceInstance() {
LOG.info("Close PCEP Topology Provider Singleton Service {}", getIdentifier().getValue());
- if (this.pcepTopoProvider != null && this.serviceInstantiated) {
+ if (this.serviceInstantiated) {
this.serviceInstantiated = false;
return this.pcepTopoProvider.closeServiceInstance();
}