diff options
Diffstat (limited to 'base/src/main/java/bjc/utils/components/IComponentRepository.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/components/IComponentRepository.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/base/src/main/java/bjc/utils/components/IComponentRepository.java b/base/src/main/java/bjc/utils/components/IComponentRepository.java deleted file mode 100644 index 7a40541..0000000 --- a/base/src/main/java/bjc/utils/components/IComponentRepository.java +++ /dev/null @@ -1,49 +0,0 @@ -package bjc.utils.components; - -import bjc.funcdata.ListEx; -import bjc.funcdata.MapEx; - -/** - * A collection of implementations of a particular type of - * {@link IDescribedComponent}. - * - * @author ben - * - * @param <ComponentType> - * The type of components contained in this repository. - */ -public interface IComponentRepository<ComponentType extends IDescribedComponent> { - /** - * Get all of the components this repository knows about. - * - * @return A map from component name to component, containing all of the - * components in the repositories. - */ - public MapEx<String, ComponentType> getAll(); - - /** - * Get a component with a specific name. - * - * @param name - * The name of the component to retrieve. - * - * @return The named component, or null if no component with that name exists. - */ - public ComponentType getByName(String name); - - /** - * Get a list of all the registered components. - * - * @return A list of all the registered components. - */ - public default ListEx<ComponentType> getList() { - return getAll().valueList(); - } - - /** - * Get the source from which these components came. - * - * @return The source from which these components came. - */ - public String getSource(); -} |
