Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
move eventbus wiring up to AbstractResource
  • Loading branch information
cbeer committed Jun 11, 2013
1 parent 395186b commit 01a2b1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Expand Up @@ -19,6 +19,7 @@
import javax.ws.rs.core.SecurityContext;
import javax.ws.rs.core.UriInfo;

import com.google.common.eventbus.EventBus;
import com.hp.hpl.jena.query.Dataset;
import org.apache.commons.io.IOUtils;
import org.apache.jena.riot.WebContent;
Expand Down Expand Up @@ -83,6 +84,9 @@ public abstract class AbstractResource {
@Autowired(required=false)
private HttpTripleUtil httpTripleUtil;

@Autowired
protected EventBus eventBus;

/**
* A resource that can mint new Fedora PIDs.
*/
Expand Down
Expand Up @@ -48,9 +48,6 @@ public class RSSPublisher extends AbstractResource {

private static final String FEED_DESCRIPTION = FEED_TITLE;

@Autowired
private EventBus eventBus;

private final BlockingQueue<Event> feedQueue =
new ArrayBlockingQueue<Event>(FEED_LENGTH);

Expand Down
Expand Up @@ -57,9 +57,6 @@ public class FedoraWebhooks extends AbstractResource {

protected static HttpClient client;

@Autowired
EventBus eventBus;

/**
* For use with non-mutating methods.
*/
Expand Down

0 comments on commit 01a2b1f

Please sign in to comment.