Package me.datafox.dfxengine.handles
Class HandleManagerImpl
java.lang.Object
me.datafox.dfxengine.handles.HandleManagerImpl
- All Implemented Interfaces:
HandleManager
Implementation of
HandleManager.-
Constructor Summary
ConstructorsConstructorDescriptionHandleManagerImpl(org.slf4j.Logger logger, HandleManagerConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptioncreateSpace(String id) Creates aSpacewith the specified id if it does not already exist and returns the space with that id.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.datafox.dfxengine.handles.api.HandleManager
getSpaceSpace, getTagSpace
-
Constructor Details
-
HandleManagerImpl
- Parameters:
logger-Loggerfor the handle managerconfiguration-HandleManagerConfigurationfor the handle manager
-
-
Method Details
-
getSpaces
- Specified by:
getSpacesin interfaceHandleManager- Returns:
- unmodifiable
HandleMapcontaining allSpacesmanaged by this handle manager
-
createSpace
- Specified by:
createSpacein interfaceHandleManager- Parameters:
id-Stringid for the newSpace- Returns:
- created
Space - Throws:
NullPointerException- if the id isnullIllegalArgumentException- if the id is empty, blank, contains non-ASCII or non-printable characters or the colon (:), or if aSpacewith the given id already exists
-
getOrCreateSpace
Creates aSpacewith the specified id if it does not already exist and returns the space with that id.- Specified by:
getOrCreateSpacein interfaceHandleManager- Parameters:
id-Stringid for theSpace- Returns:
- created or pre-existing
Space - Throws:
NullPointerException- if the id isnullIllegalArgumentException- if the id is empty, blank, contains non-ASCII or non-printable characters or the colon (:)
-