use a more traditionnal naming convention with #default
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1452590 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a8f651e8a6
commit
75b4882d44
|
@ -61,7 +61,7 @@ public class DefaultAuthenticationManager
|
|||
private ApplicationContext applicationContext;
|
||||
|
||||
@Inject
|
||||
@Named( value = "userManager#configurable" )
|
||||
@Named( value = "userManager#default" )
|
||||
private UserManager userManager;
|
||||
|
||||
@SuppressWarnings( "unchecked" )
|
||||
|
|
|
@ -58,7 +58,7 @@ public class UserManagerAuthenticator
|
|||
private Logger log = LoggerFactory.getLogger( getClass() );
|
||||
|
||||
@Inject
|
||||
@Named(value = "userManager#configurable")
|
||||
@Named(value = "userManager#default")
|
||||
private UserManager userManager;
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -33,4 +33,6 @@
|
|||
|
||||
<alias name="userConfiguration#redback" alias="userConfiguration#default"/>
|
||||
|
||||
<alias name="userManager#configurable" alias="userManager#default"/>
|
||||
|
||||
</beans>
|
|
@ -59,7 +59,7 @@ public class RbacAuthorizer
|
|||
private RBACManager manager;
|
||||
|
||||
@Inject
|
||||
@Named(value = "userManager#configurable")
|
||||
@Named(value = "userManager#default")
|
||||
private UserManager userManager;
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -42,7 +42,7 @@ public class DefaultPermissionEvaluator
|
|||
implements PermissionEvaluator
|
||||
{
|
||||
@Inject
|
||||
@Named(value = "userManager#configurable")
|
||||
@Named(value = "userManager#default")
|
||||
private UserManager userManager;
|
||||
|
||||
public boolean evaluate( Permission permission, String operation, String resource, String principal )
|
||||
|
|
|
@ -44,4 +44,6 @@
|
|||
|
||||
|
||||
<alias name="userConfiguration#redback" alias="userConfiguration#default"/>
|
||||
|
||||
<alias name="userManager#configurable" alias="userManager#default"/>
|
||||
</beans>
|
|
@ -66,7 +66,7 @@ public class AdminAutoCreateCheck
|
|||
public static final String ADMIN_PASSWORD_KEY = "redback.admin.password";
|
||||
|
||||
@Inject
|
||||
@Named(value = "userManager#configurable")
|
||||
@Named(value = "userManager#default")
|
||||
private UserManager userManager;
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -51,7 +51,7 @@ public class LockedAdminEnvironmentCheck
|
|||
protected Logger log = LoggerFactory.getLogger( getClass() );
|
||||
|
||||
@Inject
|
||||
@Named( value = "userManager#configurable" )
|
||||
@Named( value = "userManager#default" )
|
||||
private UserManager userManager;
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -51,7 +51,7 @@ public class HttpDigestAuthentication
|
|||
extends HttpAuthenticator
|
||||
{
|
||||
@Inject
|
||||
@Named(value = "userManager#configurable")
|
||||
@Named(value = "userManager#default")
|
||||
private UserManager userManager;
|
||||
|
||||
/**
|
||||
|
|
|
@ -79,7 +79,7 @@ public class DefaultRoleManagementService
|
|||
@Inject
|
||||
public DefaultRoleManagementService( RoleManager roleManager,
|
||||
@Named(value = "rbacManager#default") RBACManager rbacManager,
|
||||
@Named(value = "userManager#configurable") UserManager userManager )
|
||||
@Named(value = "userManager#default") UserManager userManager )
|
||||
{
|
||||
this.roleManager = roleManager;
|
||||
this.rbacManager = rbacManager;
|
||||
|
|
|
@ -132,7 +132,7 @@ public class DefaultUserService
|
|||
private HttpServletRequest httpServletRequest;
|
||||
|
||||
@Inject
|
||||
public DefaultUserService( @Named( value = "userManager#configurable" ) UserManager userManager,
|
||||
public DefaultUserService( @Named( value = "userManager#default" ) UserManager userManager,
|
||||
SecuritySystem securitySystem,
|
||||
@Named( "httpAuthenticator#basic" ) HttpAuthenticator httpAuthenticator )
|
||||
{
|
||||
|
|
|
@ -61,7 +61,7 @@ public class AuthenticationInterceptor
|
|||
implements RequestHandler
|
||||
{
|
||||
@Inject
|
||||
@Named(value = "userManager#configurable")
|
||||
@Named(value = "userManager#default")
|
||||
private UserManager userManager;
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -44,4 +44,6 @@
|
|||
|
||||
<alias name="authorizer#rbac" alias="authorizer#default"/>
|
||||
|
||||
<alias name="userManager#configurable" alias="userManager#default"/>
|
||||
|
||||
</beans>
|
|
@ -56,7 +56,7 @@ public class KeyStoreAuthenticator
|
|||
@Resource(name = "keyManager#cached")
|
||||
private KeyManager keystore;
|
||||
|
||||
@Resource(name = "userManager#configurable")
|
||||
@Resource(name = "userManager#default")
|
||||
private UserManager userManager;
|
||||
|
||||
public String getId()
|
||||
|
|
|
@ -61,7 +61,7 @@ public class DefaultSecuritySystem
|
|||
private Authorizer authorizer;
|
||||
|
||||
@Inject
|
||||
@Named(value = "userManager#configurable")
|
||||
@Named(value = "userManager#default")
|
||||
private UserManager userManager;
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -47,4 +47,6 @@
|
|||
|
||||
<bean name="userManager#configurable" class="org.apache.archiva.redback.system.MockUserManager"/>
|
||||
|
||||
<alias name="userManager#configurable" alias="userManager#default"/>
|
||||
|
||||
</beans>
|
|
@ -47,7 +47,7 @@ public class CachedUserManager
|
|||
private Logger log = LoggerFactory.getLogger( getClass() );
|
||||
|
||||
@Inject
|
||||
@Named(value = "userManager#configurable")
|
||||
@Named(value = "userManager#default")
|
||||
private UserManager userImpl;
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -44,4 +44,6 @@
|
|||
|
||||
<alias name="userConfiguration#redback" alias="userConfiguration#default"/>
|
||||
|
||||
<alias name="userManager#configurable" alias="userManager#default"/>
|
||||
|
||||
</beans>
|
Loading…
Reference in New Issue