Re-use constant
diff --git a/org.eclipse.sisu.plexus/src/org/eclipse/sisu/plexus/DefaultPlexusBeanLocator.java b/org.eclipse.sisu.plexus/src/org/eclipse/sisu/plexus/DefaultPlexusBeanLocator.java
index c314bc3..9139291 100644
--- a/org.eclipse.sisu.plexus/src/org/eclipse/sisu/plexus/DefaultPlexusBeanLocator.java
+++ b/org.eclipse.sisu.plexus/src/org/eclipse/sisu/plexus/DefaultPlexusBeanLocator.java
@@ -13,6 +13,7 @@
import javax.inject.Inject;
import javax.inject.Singleton;
+import org.codehaus.plexus.PlexusConstants;
import org.eclipse.sisu.BeanEntry;
import org.eclipse.sisu.inject.BeanLocator;
@@ -30,12 +31,6 @@
implements PlexusBeanLocator
{
// ----------------------------------------------------------------------
- // Constants
- // ----------------------------------------------------------------------
-
- private static final String REALM_VISIBILITY = "realm";
-
- // ----------------------------------------------------------------------
// Implementation fields
// ----------------------------------------------------------------------
@@ -68,7 +63,7 @@
{
final Key<T> key = hints.length == 1 ? Key.get( role, Names.named( hints[0] ) ) : Key.get( role, Named.class );
Iterable<BeanEntry<Named, T>> beans = (Iterable<BeanEntry<Named, T>>) beanLocator.<Named, T> locate( key );
- if ( REALM_VISIBILITY.equalsIgnoreCase( visibility ) )
+ if ( PlexusConstants.REALM_VISIBILITY.equalsIgnoreCase( visibility ) )
{
beans = new RealmFilter<T>( beans );
}