blob: 42460164f22e87f35e5c320188fa276c903c387e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package bjc.utils.components;
public class MemoryComponentRepository<ComponentType extends IDescribedComponent> implements IComponentRepository<ComponentType> {
private final IMap<String, ComponentType> repo;
private final String source;
public MemoryComponentRepository(IMap<String, ComponentType> repo) {
this(repo, "memory");
}
public MemoryComponentRepository(IMap<String, ComponentType> repo, String source) {
this.repo = repo;
this.source = source;
}
public IMap<String, ComponentType> getAll() {
return repo;
}
public ComponentType getByName(String name) {
return repo.get();
}
public String getSource() {
}
}
|