Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added named annotations
  • Loading branch information
fasseg committed Apr 5, 2013
1 parent d2718a2 commit 2f37b5a
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 0 deletions.
Expand Up @@ -22,6 +22,7 @@
import java.util.Map.Entry;

import javax.inject.Inject;
import javax.inject.Named;
import javax.jcr.NodeIterator;
import javax.jcr.PathNotFoundException;
import javax.jcr.RepositoryException;
Expand Down Expand Up @@ -64,6 +65,7 @@

import com.google.common.collect.ImmutableSet.Builder;

@Named
@Path("/rest/objects/{pid}/datastreams")
public class FedoraDatastreams extends AbstractResource {

Expand Down
Expand Up @@ -7,6 +7,7 @@
import static javax.ws.rs.core.MediaType.TEXT_HTML;
import static org.slf4j.LoggerFactory.getLogger;

import javax.inject.Named;
import javax.jcr.LoginException;
import javax.jcr.Node;
import javax.jcr.NodeIterator;
Expand Down Expand Up @@ -36,6 +37,7 @@
* @author Vincent Nguyen
*/

@Named
@Path("/search")
public class FedoraFieldSearch extends AbstractResource implements
FedoraJcrTypes {
Expand Down
Expand Up @@ -10,6 +10,7 @@

import java.io.IOException;

import javax.inject.Named;
import javax.jcr.RepositoryException;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.POST;
Expand All @@ -26,6 +27,7 @@
* @author ajs6f
*
*/
@Named
@Path("nextPID")
public class FedoraIdentifiers extends AbstractResource {

Expand Down
Expand Up @@ -9,6 +9,7 @@
import java.io.IOException;
import java.net.URI;

import javax.inject.Named;
import javax.jcr.NamespaceRegistry;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
Expand Down Expand Up @@ -36,6 +37,7 @@
* @author ajs6f
*
*/
@Named
@Path("/namespaces")
public class FedoraNamespaces extends AbstractResource {

Expand Down
Expand Up @@ -13,6 +13,7 @@
import java.io.IOException;

import javax.inject.Inject;
import javax.inject.Named;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
import javax.ws.rs.DELETE;
Expand All @@ -32,6 +33,7 @@
import org.fcrepo.services.ObjectService;
import org.slf4j.Logger;

@Named
@Path("/objects")
public class FedoraObjects extends AbstractResource {

Expand Down
Expand Up @@ -14,6 +14,7 @@
import java.io.IOException;

import javax.inject.Inject;
import javax.inject.Named;
import javax.jcr.LoginException;
import javax.jcr.Repository;
import javax.jcr.RepositoryException;
Expand Down Expand Up @@ -41,6 +42,7 @@
* @author ajs6f
*/

@Named
@Path("/describe")
public class FedoraRepository extends AbstractResource {

Expand Down
Expand Up @@ -8,6 +8,7 @@
import static org.slf4j.LoggerFactory.getLogger;

import javax.inject.Inject;
import javax.inject.Named;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
import javax.jcr.query.Query;
Expand All @@ -27,6 +28,7 @@
import org.fcrepo.services.ObjectService;
import org.slf4j.Logger;

@Named
@Path("/sitemap")
public class FedoraSitemap extends AbstractResource {

Expand Down
10 changes: 10 additions & 0 deletions fcrepo-http-api/src/test/resources/WEB-INF/web.xml
Expand Up @@ -2,6 +2,16 @@
<web-app>
<display-name>Archetype Created Web Application</display-name>

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-test/master.xml</param-value>
</context-param>

<context-param>
<param-name>resteasy.scan</param-name>
<param-value>false</param-value>
</context-param>

<listener>
<listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
</listener>
Expand Down

0 comments on commit 2f37b5a

Please sign in to comment.