private LdapConnectionFactory connectionFactory;
@Inject
- @Named( value = "userConfiguration" )
+ @Named( value = "userConfiguration#default" )
private UserConfiguration config;
@Inject
<property name="contextFactory" value="com.sun.jndi.ldap.LdapCtxFactory"/>
<property name="password" value="secret"/>
<property name="bindDn" value="uid=admin,ou=system"/>
- <property name="userConf" ref="userConfiguration"/>
+ <property name="userConf" ref="userConfiguration#default"/>
</bean>
<bean name="userMapper#ldap" class="org.apache.archiva.redback.common.ldap.LdapUserMapper">
<property name="userIdAttribute" value="cn"/>
<property name="userBaseDn" value="dc=redback,dc=plexus,dc=codehaus,dc=org"/>
<property name="userObjectClass" value="inetOrgPerson"/>
- <property name="userConf" ref="userConfiguration"/>
+ <property name="userConf" ref="userConfiguration#default"/>
</bean>
- <bean name="userConfiguration" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration"
+ <bean name="userConfiguration#default" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration"
init-method="initialize">
<property name="configs">
<list>
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 )
default-lazy-init="true">
<bean name="jdoFactory#users" class="org.apache.archiva.redback.common.jdo.UserConfigurableJdoFactory">
- <property name="config" ref="userConfiguration"/>
+ <property name="config" ref="userConfiguration#default"/>
</bean>
</beans>
\ No newline at end of file
int maxResultCount = 0;
@Inject
- @Named(value = "userConfiguration")
+ @Named(value = "userConfiguration#default")
private UserConfiguration userConf;
@PostConstruct
@Inject
- @Named( value = "userConfiguration" )
+ @Named( value = "userConfiguration#default" )
private UserConfiguration userConf;
// ----------------------------------------------------------------------
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
- <bean name="userConfiguration" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
+ <bean name="userConfiguration#default" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
<property name="configs">
<list>
<value>src/test/resources/test.properties</value>
* @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
* @since 2.1
*/
-@Service("userConfiguration")
+@Service("userConfiguration#default")
public class DefaultUserConfiguration
implements UserConfiguration
{
<context:annotation-config />
<context:component-scan base-package="org.apache.archiva.redback.configuration"/>
- <alias name="userConfiguration" alias="userConfiguration#redback"/>
+ <alias name="userConfiguration#default" alias="userConfiguration#redback"/>
</beans>
\ No newline at end of file
<context:property-placeholder system-properties-mode="OVERRIDE"/>
<bean name="jdoFactory#users" class="org.apache.archiva.redback.common.jdo.UserConfigurableJdoFactory">
- <property name="config" ref="userConfiguration"/>
+ <property name="config" ref="userConfiguration#default"/>
<!--
<property name="driverName" value="org.apache.derby.jdbc.EmbeddedDriver"/>
<property name="url" value="jdbc:derby:memory:users-test" />
private SecuritySystem securitySystem;
@Inject
- @Named( value = "userConfiguration" )
+ @Named( value = "userConfiguration#default" )
private UserConfiguration config;
public void sendAccountValidationEmail( Collection<String> recipients, AuthenticationKey authkey, String baseUrl )
private Logger log = LoggerFactory.getLogger( VelocityMailGenerator.class );
@Inject
- @Named(value = "userConfiguration")
+ @Named(value = "userConfiguration#default")
private UserConfiguration config;
// FIXME use the spring directly
private SecuritySystem securitySystem;
@Inject
- @Named( value = "userConfiguration" )
+ @Named( value = "userConfiguration#default" )
private UserConfiguration config;
@Inject
private UserManager userManager;
@Inject
- @Named( value = "userConfiguration" )
+ @Named( value = "userConfiguration#default" )
private UserConfiguration config;
@Inject
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
- http://cxf.apache.org/jaxrs
- http://cxf.apache.org/schemas/jaxrs.xsd">
+ http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
- <bean name="userConfiguration" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration"
+ <bean name="userConfiguration#default" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration"
init-method="initialize">
<property name="configs">
<list>
</property>
</bean>
- <bean name="userConfiguration" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
+ <bean name="userConfiguration#default" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
<property name="registry" ref="test-conf"/>
</bean>
</property>
</bean>
- <bean name="userConfiguration" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
+ <bean name="userConfiguration#default" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
<property name="registry" ref="test-conf"/>
</bean>
public abstract class AbstractCookieSettings
implements CookieSettings
{
- @Inject @Named(value="userConfiguration")
+ @Inject @Named(value="userConfiguration#default")
protected UserConfiguration config;
/**
private PasswordRule defaultPasswordRule = new MustHavePasswordRule();
@Inject
- @Named(value = "userConfiguration")
+ @Named(value = "userConfiguration#default")
private UserConfiguration config;
@Inject
public class DefaultUserValidationSettings
implements UserValidationSettings
{
- @Resource( name = "userConfiguration" )
+ @Resource( name = "userConfiguration#default" )
private UserConfiguration config;
private boolean emailValidationRequired;
{
protected boolean enabled = true;
- @Inject @Named (value="userConfiguration")
+ @Inject @Named (value="userConfiguration#default")
protected UserConfiguration config;
public boolean isEnabled()
</property>
</bean>
- <bean name="userConfiguration" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
+ <bean name="userConfiguration#default" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
<property name="registry" ref="test-conf"/>
</bean>
</property>
</bean>
- <bean name="userConfiguration" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
+ <bean name="userConfiguration#default" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
<property name="registry" ref="test-conf"/>
</bean>
</property>
</bean>
- <bean name="userConfiguration" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
+ <bean name="userConfiguration#default" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
<property name="registry" ref="test-conf"/>
</bean>
</property>
</bean>
- <bean name="userConfiguration" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
+ <bean name="userConfiguration#default" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
<property name="registry" ref="test-conf"/>
</bean>
</property>
</bean>
- <bean name="userConfiguration" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
+ <bean name="userConfiguration#default" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
<property name="registry" ref="test-conf"/>
</bean>
</property>
</bean>
- <bean name="userConfiguration" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
+ <bean name="userConfiguration#default" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
<property name="registry" ref="test-conf"/>
</bean>
implements UserManager
{
@Inject
- @Named( value = "userConfiguration" )
+ @Named( value = "userConfiguration#default" )
private UserConfiguration config;
@Inject
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<bean name="jdoFactory#users" class="org.apache.archiva.redback.common.jdo.UserConfigurableJdoFactory">
- <property name="config" ref="userConfiguration"/>
+ <property name="config" ref="userConfiguration#default"/>
<property name="driverName" value="org.hsqldb.jdbcDriver"/>
<property name="url" value="jdbc:hsqldb:mem:redback-users-tests" />
<property name="userName" value="sa"/>
<property name="password" value=""/>
</bean>
- <bean name="userConfiguration" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
+ <bean name="userConfiguration#default" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration">
<property name="registry" ref="test-conf"/>
</bean>
<property name="contextFactory" value="com.sun.jndi.ldap.LdapCtxFactory"/>
<property name="password" value="secret"/>
<property name="bindDn" value="uid=admin,ou=system"/>
- <property name="userConf" ref="userConfiguration"/>
+ <property name="userConf" ref="userConfiguration#default"/>
</bean>
<bean name="userMapper#ldap" class="org.apache.archiva.redback.common.ldap.LdapUserMapper">
<property name="userIdAttribute" value="cn"/>
<property name="userBaseDn" value="dc=redback,dc=plexus,dc=codehaus,dc=org"/>
<property name="userObjectClass" value="inetOrgPerson"/>
- <property name="userConf" ref="userConfiguration"/>
+ <property name="userConf" ref="userConfiguration#default"/>
</bean>
</beans>
\ No newline at end of file