diff options
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java | 35 |
1 files changed, 35 insertions, 0 deletions
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<E extends IDescribedComponent> { + /** + * Get a list of all the registered componets + * + * @return A list of all the registered components + */ + public FunctionalList<E> 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<String, E> getComponents(); + + /** + * Get the source from which these components came + * + * @return The source from which these components came + */ + public String getSource(); +} |
