From 120ac7034bcfa91a02b1b68c0507fd3ef80a0cfa Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Tue, 1 Mar 2016 20:43:51 -0500 Subject: Implemented support for component-based shenanigans. By default, only a source for retrieving components from streams is implemented --- .../bjc/utils/components/IComponentRepository.java | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java (limited to 'BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java b/BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java new file mode 100644 index 0000000..a326a78 --- /dev/null +++ b/BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java @@ -0,0 +1,35 @@ +package bjc.utils.components; + +import java.util.Map; + +import bjc.utils.funcdata.FunctionalList; + +/** + * A collection of implementations of {@link IDescribedComponent} + * + * @author ben + * + */ +public interface IComponentRepository { + /** + * Get a list of all the registered componets + * + * @return A list of all the registered components + */ + public FunctionalList getComponentList(); + + /** + * Get all of the components this repository knows about + * + * @return A map from component name to component, containing all of + * the components in the repositorys + */ + public Map getComponents(); + + /** + * Get the source from which these components came + * + * @return The source from which these components came + */ + public String getSource(); +} -- cgit v1.2.3