com.cisco.oss.foundation.directory.adapter.AbstractModelChangeAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sd-api Show documentation
Show all versions of sd-api Show documentation
Project for Cisco OSS service directory API library.
package com.cisco.oss.foundation.directory.adapter;
import com.cisco.oss.foundation.directory.entity.ModelServiceInstance;
import com.cisco.oss.foundation.directory.impl.InstanceChangeListener;
/**
* Abstract adapter to bridge the 1.2 service instance changes to the 1.1 notifications.
*/
public abstract class AbstractModelChangeAdapter implements InstanceChangeListener {
private final T adapter;
/**
* Constructor.
*
* @param adapter
* the adapter object
*/
public AbstractModelChangeAdapter(T adapter){
this.adapter=adapter;
}
/**
* Get the adapter object.
*
* @return the adapter.
*/
public T getAdapter(){
return adapter;
}
}