package org.collectionspace.services.jaxrs;

import org.collectionspace.services.CollectionObjectResource;
import javax.ws.rs.core.Application;
import java.util.HashSet;
import java.util.Set;

public class CollectionSpaceJaxRsApplication extends Application {

    private Set<Object> singletons = new HashSet<Object>();
    private Set<Class<?>> empty = new HashSet<Class<?>>();

    public CollectionSpaceJaxRsApplication() {
        singletons.add(new CollectionObjectResource());
//        singletons.add(new DomainIdentifierResource());
//        singletons.add(new PingResource());
    }

    @Override
    public Set<Class<?>> getClasses() {
        return empty;
    }

    @Override
    public Set<Object> getSingletons() {
        return singletons;
    }
}


@@ -100,16 +100,69 @@
 source;%0A
+import org.collectionspace.services.IntakeResource;%0A%0A
 import j
@@ -522,32 +522,78 @@
 ectResource());%0A
+        singletons.add(new IntakeResource());%0A
 //        single

Add new singleton for Intake resource