From: Olivier Lamy Date: Thu, 6 Dec 2012 09:09:45 +0000 (+0000) Subject: use a more classic name for this bean userConfiguration#default X-Git-Tag: redback-2.1~223 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2907ffa1019d1130786e564cc5569842b0a5ae26;p=archiva.git use a more classic name for this bean userConfiguration#default git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1417782 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/main/java/org/apache/archiva/redback/authentication/ldap/LdapBindAuthenticator.java b/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/main/java/org/apache/archiva/redback/authentication/ldap/LdapBindAuthenticator.java index bc5c75710..a4b51fee8 100644 --- a/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/main/java/org/apache/archiva/redback/authentication/ldap/LdapBindAuthenticator.java +++ b/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/main/java/org/apache/archiva/redback/authentication/ldap/LdapBindAuthenticator.java @@ -68,7 +68,7 @@ public class LdapBindAuthenticator private LdapConnectionFactory connectionFactory; @Inject - @Named( value = "userConfiguration" ) + @Named( value = "userConfiguration#default" ) private UserConfiguration config; @Inject diff --git a/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/test/resources/META-INF/spring-context.xml b/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/test/resources/META-INF/spring-context.xml index ba7d70010..dce487256 100644 --- a/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/test/resources/META-INF/spring-context.xml +++ b/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/test/resources/META-INF/spring-context.xml @@ -43,7 +43,7 @@ - + @@ -53,10 +53,10 @@ - + - diff --git a/redback-common/redback-common-jdo/src/main/java/org/apache/archiva/redback/common/jdo/UserConfigurableJdoFactory.java b/redback-common/redback-common-jdo/src/main/java/org/apache/archiva/redback/common/jdo/UserConfigurableJdoFactory.java index eeb1cf681..132651bea 100644 --- a/redback-common/redback-common-jdo/src/main/java/org/apache/archiva/redback/common/jdo/UserConfigurableJdoFactory.java +++ b/redback-common/redback-common-jdo/src/main/java/org/apache/archiva/redback/common/jdo/UserConfigurableJdoFactory.java @@ -47,7 +47,7 @@ public class UserConfigurableJdoFactory private Logger log = LoggerFactory.getLogger( getClass() ); @Inject - @Named( value = "userConfiguration" ) + @Named( value = "userConfiguration#default" ) private UserConfiguration config; private String getConfigString( String key, String currentValue, String defaultValue ) diff --git a/redback-common/redback-common-jdo/src/main/resources/META-INF/spring-context.xml b/redback-common/redback-common-jdo/src/main/resources/META-INF/spring-context.xml index db81fdd73..6c510910d 100644 --- a/redback-common/redback-common-jdo/src/main/resources/META-INF/spring-context.xml +++ b/redback-common/redback-common-jdo/src/main/resources/META-INF/spring-context.xml @@ -25,6 +25,6 @@ default-lazy-init="true"> - + \ No newline at end of file diff --git a/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/LdapUserMapper.java b/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/LdapUserMapper.java index 8e4f25995..614ca0158 100644 --- a/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/LdapUserMapper.java +++ b/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/LdapUserMapper.java @@ -80,7 +80,7 @@ public class LdapUserMapper int maxResultCount = 0; @Inject - @Named(value = "userConfiguration") + @Named(value = "userConfiguration#default") private UserConfiguration userConf; @PostConstruct diff --git a/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/ConfigurableLdapConnectionFactory.java b/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/ConfigurableLdapConnectionFactory.java index e5438b9c0..c67da2e6b 100644 --- a/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/ConfigurableLdapConnectionFactory.java +++ b/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/ConfigurableLdapConnectionFactory.java @@ -63,7 +63,7 @@ public class ConfigurableLdapConnectionFactory @Inject - @Named( value = "userConfiguration" ) + @Named( value = "userConfiguration#default" ) private UserConfiguration userConf; // ---------------------------------------------------------------------- diff --git a/redback-common/redback-common-ldap/src/test/resources/spring-context.xml b/redback-common/redback-common-ldap/src/test/resources/spring-context.xml index 6bb89bcf2..f9399e065 100644 --- a/redback-common/redback-common-ldap/src/test/resources/spring-context.xml +++ b/redback-common/redback-common-ldap/src/test/resources/spring-context.xml @@ -23,7 +23,7 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> - + src/test/resources/test.properties diff --git a/redback-configuration/src/main/java/org/apache/archiva/redback/configuration/DefaultUserConfiguration.java b/redback-configuration/src/main/java/org/apache/archiva/redback/configuration/DefaultUserConfiguration.java index cf3016a13..47bfe4b3e 100644 --- a/redback-configuration/src/main/java/org/apache/archiva/redback/configuration/DefaultUserConfiguration.java +++ b/redback-configuration/src/main/java/org/apache/archiva/redback/configuration/DefaultUserConfiguration.java @@ -41,7 +41,7 @@ import java.util.List; * @author Joakim Erdfelt * @since 2.1 */ -@Service("userConfiguration") +@Service("userConfiguration#default") public class DefaultUserConfiguration implements UserConfiguration { diff --git a/redback-configuration/src/main/resources/META-INF/spring-context.xml b/redback-configuration/src/main/resources/META-INF/spring-context.xml index fec5d2112..50fce3a81 100644 --- a/redback-configuration/src/main/resources/META-INF/spring-context.xml +++ b/redback-configuration/src/main/resources/META-INF/spring-context.xml @@ -29,6 +29,6 @@ - + \ No newline at end of file diff --git a/redback-data-management/src/test/resources/spring-context.xml b/redback-data-management/src/test/resources/spring-context.xml index 06ea9af36..137002f2e 100644 --- a/redback-data-management/src/test/resources/spring-context.xml +++ b/redback-data-management/src/test/resources/spring-context.xml @@ -29,7 +29,7 @@ - + + http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> - diff --git a/redback-keys/redback-keys-providers/redback-keys-cached/src/test/resources/spring-context.xml b/redback-keys/redback-keys-providers/redback-keys-cached/src/test/resources/spring-context.xml index 5d60d1dcf..add479b8e 100644 --- a/redback-keys/redback-keys-providers/redback-keys-cached/src/test/resources/spring-context.xml +++ b/redback-keys/redback-keys-providers/redback-keys-cached/src/test/resources/spring-context.xml @@ -40,7 +40,7 @@ - + diff --git a/redback-keys/redback-keys-providers/redback-keys-jdo/src/test/resources/spring-context.xml b/redback-keys/redback-keys-providers/redback-keys-jdo/src/test/resources/spring-context.xml index 38e6ca73a..dd75f723a 100644 --- a/redback-keys/redback-keys-providers/redback-keys-jdo/src/test/resources/spring-context.xml +++ b/redback-keys/redback-keys-providers/redback-keys-jdo/src/test/resources/spring-context.xml @@ -36,7 +36,7 @@ - + diff --git a/redback-policy/src/main/java/org/apache/archiva/redback/policy/AbstractCookieSettings.java b/redback-policy/src/main/java/org/apache/archiva/redback/policy/AbstractCookieSettings.java index 87b23844c..9d3947c10 100644 --- a/redback-policy/src/main/java/org/apache/archiva/redback/policy/AbstractCookieSettings.java +++ b/redback-policy/src/main/java/org/apache/archiva/redback/policy/AbstractCookieSettings.java @@ -34,7 +34,7 @@ import org.apache.archiva.redback.configuration.UserConfiguration; public abstract class AbstractCookieSettings implements CookieSettings { - @Inject @Named(value="userConfiguration") + @Inject @Named(value="userConfiguration#default") protected UserConfiguration config; /** diff --git a/redback-policy/src/main/java/org/apache/archiva/redback/policy/DefaultUserSecurityPolicy.java b/redback-policy/src/main/java/org/apache/archiva/redback/policy/DefaultUserSecurityPolicy.java index 6fefb38f9..c78cee3bf 100644 --- a/redback-policy/src/main/java/org/apache/archiva/redback/policy/DefaultUserSecurityPolicy.java +++ b/redback-policy/src/main/java/org/apache/archiva/redback/policy/DefaultUserSecurityPolicy.java @@ -52,7 +52,7 @@ public class DefaultUserSecurityPolicy private PasswordRule defaultPasswordRule = new MustHavePasswordRule(); @Inject - @Named(value = "userConfiguration") + @Named(value = "userConfiguration#default") private UserConfiguration config; @Inject diff --git a/redback-policy/src/main/java/org/apache/archiva/redback/policy/DefaultUserValidationSettings.java b/redback-policy/src/main/java/org/apache/archiva/redback/policy/DefaultUserValidationSettings.java index c16d9d9f8..8ce34194d 100644 --- a/redback-policy/src/main/java/org/apache/archiva/redback/policy/DefaultUserValidationSettings.java +++ b/redback-policy/src/main/java/org/apache/archiva/redback/policy/DefaultUserValidationSettings.java @@ -35,7 +35,7 @@ import javax.annotation.Resource; public class DefaultUserValidationSettings implements UserValidationSettings { - @Resource( name = "userConfiguration" ) + @Resource( name = "userConfiguration#default" ) private UserConfiguration config; private boolean emailValidationRequired; diff --git a/redback-policy/src/main/java/org/apache/archiva/redback/policy/rules/AbstractPasswordRule.java b/redback-policy/src/main/java/org/apache/archiva/redback/policy/rules/AbstractPasswordRule.java index 73183e0ed..680658414 100644 --- a/redback-policy/src/main/java/org/apache/archiva/redback/policy/rules/AbstractPasswordRule.java +++ b/redback-policy/src/main/java/org/apache/archiva/redback/policy/rules/AbstractPasswordRule.java @@ -33,7 +33,7 @@ public abstract class AbstractPasswordRule { protected boolean enabled = true; - @Inject @Named (value="userConfiguration") + @Inject @Named (value="userConfiguration#default") protected UserConfiguration config; public boolean isEnabled() diff --git a/redback-rbac/redback-rbac-providers/redback-rbac-cached/src/test/resources/spring-context.xml b/redback-rbac/redback-rbac-providers/redback-rbac-cached/src/test/resources/spring-context.xml index bc04bd968..a64641847 100755 --- a/redback-rbac/redback-rbac-providers/redback-rbac-cached/src/test/resources/spring-context.xml +++ b/redback-rbac/redback-rbac-providers/redback-rbac-cached/src/test/resources/spring-context.xml @@ -38,7 +38,7 @@ - + diff --git a/redback-rbac/redback-rbac-providers/redback-rbac-jdo/src/test/resources/spring-context.xml b/redback-rbac/redback-rbac-providers/redback-rbac-jdo/src/test/resources/spring-context.xml index 9699fe7f7..c7b54f039 100644 --- a/redback-rbac/redback-rbac-providers/redback-rbac-jdo/src/test/resources/spring-context.xml +++ b/redback-rbac/redback-rbac-providers/redback-rbac-jdo/src/test/resources/spring-context.xml @@ -41,7 +41,7 @@ - + diff --git a/redback-rbac/redback-rbac-providers/redback-rbac-memory/src/test/resources/spring-context.xml b/redback-rbac/redback-rbac-providers/redback-rbac-memory/src/test/resources/spring-context.xml index 5fea76993..33592849e 100755 --- a/redback-rbac/redback-rbac-providers/redback-rbac-memory/src/test/resources/spring-context.xml +++ b/redback-rbac/redback-rbac-providers/redback-rbac-memory/src/test/resources/spring-context.xml @@ -37,7 +37,7 @@ - + diff --git a/redback-rbac/redback-rbac-role-manager/src/test/resources/jpox-spring-context.xml b/redback-rbac/redback-rbac-role-manager/src/test/resources/jpox-spring-context.xml index 9ffa44202..b69cc1207 100644 --- a/redback-rbac/redback-rbac-role-manager/src/test/resources/jpox-spring-context.xml +++ b/redback-rbac/redback-rbac-role-manager/src/test/resources/jpox-spring-context.xml @@ -70,7 +70,7 @@ - + diff --git a/redback-rbac/redback-rbac-role-manager/src/test/resources/spring-context.xml b/redback-rbac/redback-rbac-role-manager/src/test/resources/spring-context.xml index 5311b6249..9f59f4e9c 100755 --- a/redback-rbac/redback-rbac-role-manager/src/test/resources/spring-context.xml +++ b/redback-rbac/redback-rbac-role-manager/src/test/resources/spring-context.xml @@ -39,7 +39,7 @@ - + diff --git a/redback-system/src/test/resources/spring-context.xml b/redback-system/src/test/resources/spring-context.xml index 38e6ca73a..dd75f723a 100644 --- a/redback-system/src/test/resources/spring-context.xml +++ b/redback-system/src/test/resources/spring-context.xml @@ -36,7 +36,7 @@ - + diff --git a/redback-users/redback-users-providers/redback-users-configurable/src/main/java/org/apache/archiva/redback/users/configurable/ConfigurableUserManager.java b/redback-users/redback-users-providers/redback-users-configurable/src/main/java/org/apache/archiva/redback/users/configurable/ConfigurableUserManager.java index d4a3a3616..909c831b1 100644 --- a/redback-users/redback-users-providers/redback-users-configurable/src/main/java/org/apache/archiva/redback/users/configurable/ConfigurableUserManager.java +++ b/redback-users/redback-users-providers/redback-users-configurable/src/main/java/org/apache/archiva/redback/users/configurable/ConfigurableUserManager.java @@ -40,7 +40,7 @@ public class ConfigurableUserManager implements UserManager { @Inject - @Named( value = "userConfiguration" ) + @Named( value = "userConfiguration#default" ) private UserConfiguration config; @Inject diff --git a/redback-users/redback-users-providers/redback-users-jdo/src/test/resources/spring-context.xml b/redback-users/redback-users-providers/redback-users-jdo/src/test/resources/spring-context.xml index 2db3f24aa..7ad0ca867 100644 --- a/redback-users/redback-users-providers/redback-users-jdo/src/test/resources/spring-context.xml +++ b/redback-users/redback-users-providers/redback-users-jdo/src/test/resources/spring-context.xml @@ -27,14 +27,14 @@ http://www.springframework.org/schema/context/spring-context-3.0.xsd"> - + - + diff --git a/redback-users/redback-users-providers/redback-users-ldap/src/test/resources/spring-context.xml b/redback-users/redback-users-providers/redback-users-ldap/src/test/resources/spring-context.xml index 689b6b7ad..9d7dbd530 100644 --- a/redback-users/redback-users-providers/redback-users-ldap/src/test/resources/spring-context.xml +++ b/redback-users/redback-users-providers/redback-users-ldap/src/test/resources/spring-context.xml @@ -43,7 +43,7 @@ - + @@ -53,7 +53,7 @@ - + \ No newline at end of file