source: ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/rest/ProfileClosure.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: 502 bytes
Line 
1package clarin.cmdi.componentregistry.rest;
2
3import clarin.cmdi.componentregistry.ComponentRegistry;
4import clarin.cmdi.componentregistry.ComponentRegistryException;
5import clarin.cmdi.componentregistry.model.ProfileDescription;
6
7public class ProfileClosure implements RegistryClosure<ProfileDescription> {
8
9    @Override
10    public ProfileDescription getDescription(ComponentRegistry registry, String id) throws ComponentRegistryException {
11        return registry.getProfileDescription(id);
12    }
13
14}
Note: See TracBrowser for help on using the repository browser.