![JAR search and dependency download from the Maven repository](/logo.png)
net.anotheria.anodoc.util.StoragePlaceHolder Maven / Gradle / Ivy
package net.anotheria.anodoc.util;
import net.anotheria.anodoc.data.Module;
import net.anotheria.anodoc.service.IModuleStorage;
import net.anotheria.anodoc.service.NoStoredModuleEntityException;
import net.anotheria.asg.util.listener.IModuleListener;
/**
* This class represents a IModuleStorage which DOES NOT store
* anything, and act as a placeholder instead. This is useful for view testing sometimes.
*
* @author another
* @version $Id: $Id
*/
public class StoragePlaceHolder implements IModuleStorage{
/**
* {@inheritDoc}
*
* Always throws new NoStoredModuleEntityException("placeholder storage")
*/
@Override public Module loadModule(String ownerId, String copyId)
throws NoStoredModuleEntityException {
throw new NoStoredModuleEntityException("placeholder storage");
}
/**
* {@inheritDoc}
*
* Does nothing
*/
@Override public void saveModule(Module module) {
}
/**
* {@inheritDoc}
*
* Does nothing
*/
@Override public void deleteModule(String ownerId, String copyId){
}
/**
* {@inheritDoc}
*
*
* Does nothing.
*/
@Override public void addModuleListener(IModuleListener listener) {
}
/**
* {@inheritDoc}
*
*
* Does nothing.
*/
@Override public void removeModuleListener(IModuleListener listener) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy