Examples of afterPropertiesSet()


Examples of org.eclipse.gemini.blueprint.service.exporter.support.OsgiServiceFactoryBean.afterPropertiesSet()

            factoryBean.setServiceProperties(getServiceProperties(service));
            factoryBean.setInterfaces(interfaces);
            factoryBean.setBeanFactory(applicationContext);
            factoryBean.setTargetBeanName(beanName);
            factoryBean.setBundleContext(bundleContext);
            factoryBean.afterPropertiesSet();
        } catch (final Exception e) {
            logger.warn("Error registering bean '{}' as OSGi service.", beanName, e);
        }
    }
View Full Code Here

Examples of org.grails.plugins.codecs.DefaultCodecLookup.afterPropertiesSet()

        appCtx.registerMockBean("groovyPageLocator", pageLocator);
        appCtx.registerMockBean("groovyPageLayoutFinder", layoutFinder);
        DefaultCodecLookup codecLookup=new DefaultCodecLookup();
        codecLookup.setGrailsApplication(grailsApplication);
        codecLookup.afterPropertiesSet();
        appCtx.registerMockBean("codecLookup", codecLookup);
        appCtx.getServletContext().setAttribute(GrailsApplicationAttributes.APPLICATION_CONTEXT, appCtx);
        appCtx.getServletContext().setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, appCtx);
        grailsApplication.setMainContext(appCtx);
        return GrailsWebMockUtil.bindMockWebRequest(appCtx, new MockHttpServletRequest(appCtx.getServletContext()) {
View Full Code Here

Examples of org.grails.web.pages.GroovyPagesTemplateEngine.afterPropertiesSet()

        pageLocator.setApplicationContext(appCtx);

        GroovyPagesTemplateEngine gpte = new GroovyPagesTemplateEngine();
        gpte.setServletContext(appCtx.getServletContext());
        gpte.setApplicationContext(appCtx);
        gpte.afterPropertiesSet();

        GroovyPageViewResolver grailsViewResolver=new GroovyPageViewResolver();
        grailsViewResolver.setApplicationContext(appCtx);
        grailsViewResolver.setGroovyPageLocator(pageLocator);
        grailsViewResolver.setTemplateEngine(gpte);
View Full Code Here

Examples of org.impalaframework.spring.config.ExternalDynamicPropertySource.afterPropertiesSet()

    public void testExternalProperties() throws Exception, InterruptedException {
        ExternalDynamicPropertySource source = new ExternalDynamicPropertySource();
        source.setFileName("reload/reloadable.properties");
        source.setReloadInitialDelay(1);
        source.setReloadInterval(3);
        source.afterPropertiesSet();
       
        while (true) {
            System.out.println(source.getValue("property1"));
            Thread.sleep(1000);
        }
View Full Code Here

Examples of org.jasig.cas.util.PrivateKeyFactoryBean.afterPropertiesSet()

        final ClassPathResource privKeyResource = new ClassPathResource("DSAPrivateKey01.key");
       
        pubKeyFactoryBean.setLocation(pubKeyResource);
        privKeyFactoryBean.setLocation(privKeyResource);
        pubKeyFactoryBean.afterPropertiesSet();
        privKeyFactoryBean.afterPropertiesSet();
       
        final DSAPrivateKey privateKey = (DSAPrivateKey) privKeyFactoryBean.getObject();
        final DSAPublicKey publicKey = (DSAPublicKey) pubKeyFactoryBean.getObject();
       
        final MockHttpServletRequest request = new MockHttpServletRequest();
View Full Code Here

Examples of org.jasig.cas.util.PublicKeyFactoryBean.afterPropertiesSet()

        final ClassPathResource pubKeyResource = new ClassPathResource("DSAPublicKey01.key");
        final ClassPathResource privKeyResource = new ClassPathResource("DSAPrivateKey01.key");
       
        pubKeyFactoryBean.setLocation(pubKeyResource);
        privKeyFactoryBean.setLocation(privKeyResource);
        pubKeyFactoryBean.afterPropertiesSet();
        privKeyFactoryBean.afterPropertiesSet();
       
        final DSAPrivateKey privateKey = (DSAPrivateKey) privKeyFactoryBean.getObject();
        final DSAPublicKey publicKey = (DSAPublicKey) pubKeyFactoryBean.getObject();
       
View Full Code Here

Examples of org.jasig.portal.spring.beans.factory.ObjectMapperFactoryBean.afterPropertiesSet()

    private ObjectMapper objectMapper;
   
    @Before
    public void setup() throws Exception {
        final ObjectMapperFactoryBean omfb = new ObjectMapperFactoryBean();
        omfb.afterPropertiesSet();
        objectMapper = omfb.getObject();
    }
   
    @Test
    public void testJsonConversion() throws Exception {
View Full Code Here

Examples of org.jbpm.formbuilder.server.form.GuvnorFormDefinitionService.afterPropertiesSet()

            getWebApplicationContext(request.getSession().getServletContext()).getBean("guvnorFormService");
        if (usr != null && pwd != null) {
            service.setUser(usr);
            service.setPassword(pwd);
            try {
                service.afterPropertiesSet();
            } catch (Exception e) { }
        }
        return service;
    }
View Full Code Here

Examples of org.jbpm.formbuilder.server.task.GuvnorTaskDefinitionService.afterPropertiesSet()

            getWebApplicationContext(request.getSession().getServletContext()).getBean("guvnorTaskService");
        if (usr != null && pwd != null) {
            service.setUser(usr);
            service.setPassword(pwd);
            try {
                service.afterPropertiesSet();
            } catch (Exception e) { }
        }
        return service;
    }
View Full Code Here

Examples of org.jencks.JCAConnector.afterPropertiesSet()

              JCAConnector connector = new JCAConnector();
              connector.setBootstrapContext(getBootstrapContext());
              connector.setActivationSpec(ac);
              connector.setResourceAdapter(resourceAdapter);
              connector.setEndpointFactory(new SingletonEndpointFactory(this, getTransactionManager()));
              connector.afterPropertiesSet();
                connectorMap.put(componentName, connector);
            } else if (event.getStatus() == ComponentPacketEvent.DEACTIVATED){
              JCAConnector connector = (JCAConnector) connectorMap.remove(componentName);
                if (connector != null){
                  connector.destroy();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.