Examples of afterPropertiesSet()


Examples of org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet()

    LocalSessionFactoryBean factory = new LocalSessionFactoryBean();
    factory.setDataSource(dataSource);
    factory.setMappingLocations(new Resource[] {
        new ClassPathResource("org/springframework/webflow/persistence/TestBean.hbm.xml"),
        new ClassPathResource("org/springframework/webflow/persistence/TestAddress.hbm.xml") });
    factory.afterPropertiesSet();
    return (SessionFactory) factory.getObject();
  }

}
View Full Code Here

Examples of org.springframework.orm.ibatis.support.SqlMapClientDaoSupport.afterPropertiesSet()

    template.setDataSource(ds);
    template.setSqlMapClient(client);
    testDao.setSqlMapClientTemplate(template);
    assertEquals(template, testDao.getSqlMapClientTemplate());

    testDao.afterPropertiesSet();
  }


  private static class TestSqlMapClientTemplate extends SqlMapClientTemplate {
View Full Code Here

Examples of org.springframework.orm.jdo.support.SpringPersistenceManagerProxyBean.afterPropertiesSet()

        pmfProxy.getPersistenceManager().flush();
        pmfProxy.getPersistenceManager().close();

        SpringPersistenceManagerProxyBean proxyBean = new SpringPersistenceManagerProxyBean();
        proxyBean.setPersistenceManagerFactory(pmf);
        proxyBean.afterPropertiesSet();
        PersistenceManager pmProxy = proxyBean.getObject();
        assertSame(pmf, pmProxy.getPersistenceManagerFactory());
        pmProxy.flush();
        pmProxy.close();
View Full Code Here

Examples of org.springframework.orm.jpa.JpaTransactionManager.afterPropertiesSet()

        return emfBean.getObject();
    }

    protected PlatformTransactionManager createTransactionManager() {
        JpaTransactionManager tm = new JpaTransactionManager(getEntityManagerFactory());
        tm.afterPropertiesSet();
        return tm;
    }

    /**
     * @deprecated use {@link #getEntityManagerFactory()} to get hold of factory and create an entity manager using the factory.
View Full Code Here

Examples of org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet()

  private static EntityManager entityManager(DataSource dataSource) {
    LocalContainerEntityManagerFactoryBean emfBean = new LocalContainerEntityManagerFactoryBean();
    emfBean.setDataSource(dataSource);
    emfBean.setPersistenceUnitName(PERSISTENCE_UNIT_NAME);
    emfBean.setPersistenceProviderClass(PERSISTENCE_PROVIDER_CLASS);
    emfBean.afterPropertiesSet();
    Map map = new HashMap<String, String>();
    map.put("openjpa.ConnectionFactoryProperties", "PrintParameters=true");
    return emfBean.getObject().createEntityManager(map);
  }
View Full Code Here

Examples of org.springframework.orm.jpa.LocalEntityManagerFactoryBean.afterPropertiesSet()

    protected EntityManagerFactory createEntityManagerFactory() {
        LocalEntityManagerFactoryBean emfBean = new LocalEntityManagerFactoryBean();
        emfBean.setPersistenceUnitName(persistenceUnit);
        emfBean.setJpaPropertyMap(getEntityManagerProperties());
        emfBean.afterPropertiesSet();
        return emfBean.getObject();
    }

    protected PlatformTransactionManager createTransactionManager() {
        JpaTransactionManager tm = new JpaTransactionManager(getEntityManagerFactory());
View Full Code Here

Examples of org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.afterPropertiesSet()

    exporter.setInterfaces(interfaces);
    exporter.setListeners(listeners);
    exporter.setTarget(bean);

    try {
      exporter.afterPropertiesSet();
    }
    catch (Exception ex) {
      throw new BeanCreationException("Cannot publish bean for pid " + beanName, ex);
    }
    return exporter;
View Full Code Here

Examples of org.springframework.osgi.service.importer.support.OsgiServiceCollectionProxyFactoryBean.afterPropertiesSet()

    fb.setBundleContext(bundleContext);
    fb.setCardinality(Cardinality.C_0__N);
    fb.setCollectionType(CollectionType.LIST);
    fb.setInterfaces(new Class[] { OsgiBundleApplicationContextListener.class });
    fb.setBeanClassLoader(extenderConfiguration.getClassLoader());
    fb.afterPropertiesSet();

    applicationListenersCleaner = fb;
    applicationListeners = (List) fb.getObject();
  }
}
View Full Code Here

Examples of org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean.afterPropertiesSet()

    proxyFB.setBeanClassLoader(proxyType.getClassLoader());
    // wait 5 seconds
    proxyFB.setTimeout(5 * 1000);
    if (StringUtils.hasText(serviceName))
      proxyFB.setServiceBeanName(serviceName);
    proxyFB.afterPropertiesSet();

    return proxyFB.getObject();
  }

  /**
 
View Full Code Here

Examples of org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.afterPropertiesSet()

      destructionCallback = new DisposableBeanRunnableAdapter(proxyPlusCallback.destructionCallback);
    }

    lookupAdvice.setProxy(proxy);
    // start the lookup only after the proxy has been assembled
    lookupAdvice.afterPropertiesSet();

    return proxy;
  }

  Runnable getProxyDestructionCallback() {
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.