Search in sources :

Example 6 with MethodInvokingFactoryBean

use of org.springframework.beans.factory.config.MethodInvokingFactoryBean in project dhis2-core by dhis2.

the class HibernateEncryptionConfig method addProvider.

@Bean
public MethodInvokingFactoryBean addProvider() {
    MethodInvokingFactoryBean methodInvokingFactoryBean = new MethodInvokingFactoryBean();
    methodInvokingFactoryBean.setStaticMethod("java.security.Security.addProvider");
    methodInvokingFactoryBean.setArguments(new BouncyCastleProvider());
    return methodInvokingFactoryBean;
}
Also used : MethodInvokingFactoryBean(org.springframework.beans.factory.config.MethodInvokingFactoryBean) BouncyCastleProvider(org.bouncycastle.jce.provider.BouncyCastleProvider) MethodInvokingFactoryBean(org.springframework.beans.factory.config.MethodInvokingFactoryBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

MethodInvokingFactoryBean (org.springframework.beans.factory.config.MethodInvokingFactoryBean)6 Bean (org.springframework.context.annotation.Bean)4 ClassPathXmlApplicationContext (org.springframework.context.support.ClassPathXmlApplicationContext)2 ShiroFilterFactoryBean (org.apache.shiro.spring.web.ShiroFilterFactoryBean)1 BouncyCastleProvider (org.bouncycastle.jce.provider.BouncyCastleProvider)1 Test (org.junit.Test)1 Test (org.junit.jupiter.api.Test)1 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1 ITestBean (org.springframework.beans.testfixture.beans.ITestBean)1 EhCacheManagerFactoryBean (org.springframework.cache.ehcache.EhCacheManagerFactoryBean)1 ITestBean (org.springframework.tests.sample.beans.ITestBean)1