]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
0021b9ae5ddefb9ca56423891a8cea0ad29bf62b
[tmp/jakarta-migration.git] /
1 package org.collectionspace.hello.services;
2
3 import javax.ws.rs.core.Application;
4 import java.util.HashSet;
5 import java.util.Set;
6
7 public class HelloworldApplication extends Application {
8    private Set<Object> singletons = new HashSet<Object>();
9    private Set<Class<?>> empty = new HashSet<Class<?>>();
10
11    public HelloworldApplication() {
12       singletons.add(new PersonResource());
13    }
14
15    @Override
16    public Set<Class<?>> getClasses() {
17       return empty;
18    }
19
20    @Override
21    public Set<Object> getSingletons() {
22       return singletons;
23    }
24 }