public class PathRegistry<K,E> extends Object
Constructor and Description |
---|
PathRegistry(PathRegistryObjectType objectType) |
Modifier and Type | Method and Description |
---|---|
void |
add(K entityKey,
String moduleName,
E entity,
String deploymentId) |
void |
addDependency(K entityKey,
String moduleName,
String deploymentIdDep) |
void |
addEntry(K entityKey,
String moduleName,
PathDeploymentEntry<E> entity) |
PathRegistry<K,E> |
copy() |
void |
deleteDeployment(String deploymentId) |
Pair<E,String> |
getAnyModuleExpectSingle(K entityKey,
Set<String> moduleUses) |
int |
getCount() |
Set<String> |
getDependencies(K entityKey,
String moduleName) |
String |
getDeploymentId(K entityEntity,
String moduleName) |
PathDeploymentEntry<E> |
getEntryWithModule(K entityKey,
String moduleName) |
PathRegistryObjectType |
getObjectType() |
E |
getWithModule(K entityKey,
String moduleName) |
boolean |
isEmpty() |
void |
mergeFrom(PathRegistry<K,E> other) |
void |
mergeFromCheckDuplicate(PathRegistry<K,E> other,
String moduleName) |
void |
removeDependency(K entityKey,
String moduleName,
String deploymentId) |
void |
traverse(Consumer<E> consumer) |
void |
traverseWithModule(BiConsumer<String,E> consumer) |
public PathRegistry(PathRegistryObjectType objectType)
public PathRegistryObjectType getObjectType()
public void add(K entityKey, String moduleName, E entity, String deploymentId) throws PathException
PathException
public void addEntry(K entityKey, String moduleName, PathDeploymentEntry<E> entity) throws PathException
PathException
public Pair<E,String> getAnyModuleExpectSingle(K entityKey, Set<String> moduleUses) throws PathException
PathException
public PathDeploymentEntry<E> getEntryWithModule(K entityKey, String moduleName)
public void deleteDeployment(String deploymentId)
public int getCount()
public void traverseWithModule(BiConsumer<String,E> consumer)
public void mergeFrom(PathRegistry<K,E> other)
public void mergeFromCheckDuplicate(PathRegistry<K,E> other, String moduleName) throws PathExceptionAlreadyRegistered
PathExceptionAlreadyRegistered
public PathRegistry<K,E> copy()
public boolean isEmpty()
Copyright © 2005–2021. All rights reserved.