Package net.anotheria.anodoc.util
Class StoragePlaceHolder
- java.lang.Object
-
- net.anotheria.anodoc.util.StoragePlaceHolder
-
- All Implemented Interfaces:
IModuleStorage
public class StoragePlaceHolder extends java.lang.Object implements IModuleStorage
This class represents a IModuleStorage which DOES NOT store anything, and act as a placeholder instead. This is useful for view testing sometimes.- Version:
- $Id: $Id
- Author:
- another
-
-
Constructor Summary
Constructors Constructor Description StoragePlaceHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddModuleListener(IModuleListener listener)Adds a module listener.voiddeleteModule(java.lang.String ownerId, java.lang.String copyId)Delete the specified instance.ModuleloadModule(java.lang.String ownerId, java.lang.String copyId)Loads the specified instance.voidremoveModuleListener(IModuleListener listener)Removes the module listener from the module storage.voidsaveModule(Module module)Saves the given instance permanently.
-
-
-
Method Detail
-
loadModule
public Module loadModule(java.lang.String ownerId, java.lang.String copyId) throws NoStoredModuleEntityException
Loads the specified instance. Always throws new NoStoredModuleEntityException("placeholder storage")- Specified by:
loadModulein interfaceIModuleStorage- Parameters:
ownerId- aStringobject.copyId- aStringobject.- Returns:
- loaded module
- Throws:
NoStoredModuleEntityException- if any.
-
saveModule
public void saveModule(Module module)
Saves the given instance permanently. Does nothing- Specified by:
saveModulein interfaceIModuleStorage- Parameters:
module- aModuleobject.
-
deleteModule
public void deleteModule(java.lang.String ownerId, java.lang.String copyId)Delete the specified instance. Does nothing- Specified by:
deleteModulein interfaceIModuleStorage- Parameters:
ownerId- aStringobject.copyId- aStringobject.
-
addModuleListener
public void addModuleListener(IModuleListener listener)
Adds a module listener. Does nothing.- Specified by:
addModuleListenerin interfaceIModuleStorage- Parameters:
listener- the listener to add.
-
removeModuleListener
public void removeModuleListener(IModuleListener listener)
Removes the module listener from the module storage. Does nothing.- Specified by:
removeModuleListenerin interfaceIModuleStorage- Parameters:
listener- the listener to remove.
-
-