source: ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/rest/ComponentClosure.java @ 1352

Last change on this file since 1352 was 1352, checked in by twagoo, 13 years ago

Improved exception throwing and handling. New generic exception class ComponentRegistryException?. DataAccesExceptions? are wrapped in this.

File size: 512 bytes
Line 
1package clarin.cmdi.componentregistry.rest;
2
3import clarin.cmdi.componentregistry.ComponentRegistry;
4import clarin.cmdi.componentregistry.ComponentRegistryException;
5import clarin.cmdi.componentregistry.model.ComponentDescription;
6
7public 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.