mirror of
https://github.com/apache/archiva.git
synced 2025-02-06 10:09:32 +00:00
spring 4.1.0
This commit is contained in:
parent
d79a630e09
commit
373183554d
@ -100,7 +100,7 @@ private RepositoryContentConsumers lookupRepositoryConsumers( )
|
||||
|
||||
RepositoryContentConsumers consumerUtil =
|
||||
applicationContext.getBean( "repositoryContentConsumers#test", RepositoryContentConsumers.class );
|
||||
ApplicationContext context = new MockApplicationContext( consumerUtil.getAvailableKnownConsumers( ),
|
||||
ApplicationContext context = new MockApplicationContext( consumerUtil.getAvailableKnownConsumers( ), //
|
||||
consumerUtil.getAvailableInvalidConsumers( ) );
|
||||
|
||||
consumerUtilStub.setApplicationContext( context );
|
||||
@ -435,6 +435,13 @@ public String[] getBeanNamesForType( Class type, boolean includeNonSingletons, b
|
||||
throw new UnsupportedOperationException( "Not supported yet." );
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> T getBean( Class<T> aClass, Object... objects )
|
||||
throws BeansException
|
||||
{
|
||||
throw new UnsupportedOperationException( "Not supported yet." );
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map getBeansOfType( Class type )
|
||||
throws BeansException
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.apache.archiva.test.utils.ArchivaBlockJUnit4ClassRunner;
|
||||
import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner;
|
||||
import org.apache.commons.codec.Encoder;
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
@ -237,6 +236,13 @@ public <T> Map<String, T> getBeansOfType( Class<T> tClass )
|
||||
return applicationContext.getBeansOfType( tClass );
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> T getBean( Class<T> aClass, Object... objects )
|
||||
throws BeansException
|
||||
{
|
||||
return applicationContext.getBean( aClass, objects );
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> Map<String, T> getBeansOfType( Class<T> tClass, boolean b, boolean b2 )
|
||||
throws BeansException
|
||||
|
@ -328,6 +328,13 @@ public <A extends Annotation> A findAnnotationOnBean( String s, Class<A> aClass
|
||||
return applicationContext.findAnnotationOnBean( s, aClass );
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> T getBean( Class<T> aClass, Object... objects )
|
||||
throws BeansException
|
||||
{
|
||||
return applicationContext.getBean( aClass, objects );
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getBean( String s )
|
||||
throws BeansException
|
||||
|
2
pom.xml
2
pom.xml
@ -75,7 +75,7 @@
|
||||
<slf4j.version>1.7.7</slf4j.version>
|
||||
<log4j.version>2.0.2</log4j.version>
|
||||
|
||||
<spring.version>4.0.6.RELEASE</spring.version>
|
||||
<spring.version>4.1.0.RELEASE</spring.version>
|
||||
|
||||
<javax.jcr.version>2.0</javax.jcr.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
Loading…
x
Reference in New Issue
Block a user