io.continual.services.model.core.ModelNotificationService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of continualModel Show documentation
Show all versions of continualModel Show documentation
Continual's modeling library.
package io.continual.services.model.core;
import io.continual.util.naming.Path;
/**
* A listener for model updates
*/
public interface ModelNotificationService
{
void onObjectCreate ( Path objectPath );
void onObjectUpdate ( Path objectPath );
void onObjectDelete ( Path objectPath );
/**
* Create a no-op notifier
* @return a notification service
*/
static ModelNotificationService noopNotifier ()
{
return new ModelNotificationService ()
{
@Override
public void onObjectCreate ( Path objectPath ) {}
@Override
public void onObjectUpdate ( Path objectPath ) {}
@Override
public void onObjectDelete ( Path objectPath ) {}
};
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy