Skip to content
Browse files

Forcing the binding type

These two descendants of ManagedPlexusResource are the only
non-plexus components (the other ones are all Plexus comps).
This resulted due to Guice "looser" bindings to have them end
up in collection of PlexusResources too as the two ifaces
are type compatible.

Explicitly setting the type on these two for now.
  • Loading branch information...
1 parent e358690 commit daf7f7f7b1c27a6a9f6bc656b733f9bb55c6e045 @cstamas cstamas committed
View
2 ...ugin/src/main/java/org/sonatype/nexus/plugins/ui/rest/IndexRedirectingPlexusResource.java
@@ -12,6 +12,7 @@
*/
package org.sonatype.nexus.plugins.ui.rest;
+import javax.enterprise.inject.Typed;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
@@ -30,6 +31,7 @@
*/
@Named( "IndexRedirectingPlexusResource" )
@Singleton
+@Typed( ManagedPlexusResource.class )
public class IndexRedirectingPlexusResource
extends AbstractNexusPlexusResource
implements ManagedPlexusResource
View
3 ...-plugin/src/main/java/org/sonatype/nexus/plugins/ui/rest/IndexTemplatePlexusResource.java
@@ -18,6 +18,8 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
+
+import javax.enterprise.inject.Typed;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
@@ -51,6 +53,7 @@
@Named("indexTemplate")
@Singleton
+@Typed( ManagedPlexusResource.class )
public class IndexTemplatePlexusResource
extends AbstractPlexusResource
implements ManagedPlexusResource

0 comments on commit daf7f7f

Please sign in to comment.
Something went wrong with that request. Please try again.