Line | |
---|
1 | package clarin.cmdi.componentregistry.rest; |
---|
2 | |
---|
3 | import clarin.cmdi.componentregistry.ComponentRegistry; |
---|
4 | import clarin.cmdi.componentregistry.ComponentRegistryException; |
---|
5 | import clarin.cmdi.componentregistry.model.ComponentDescription; |
---|
6 | |
---|
7 | public class ComponentClosure implements RegistryClosure<ComponentDescription> { |
---|
8 | |
---|
9 | @Override |
---|
10 | public ComponentDescription getDescription(ComponentRegistry registry, String id) throws ComponentRegistryException { |
---|
11 | return registry.getComponentDescription(id); |
---|
12 | } |
---|
13 | |
---|
14 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.