public void init() { init(getClass().getClassLoader()); }
public void start(BundleContext bundleContext) throws Exception { log.info("Starting Dozer OSGi bundle"); OSGiClassLoader classLoader = new OSGiClassLoader(bundleContext); BeanContainer.getInstance().setClassLoader(classLoader); DozerInitializer.getInstance().init(Activator.class.getClassLoader()); }
private void init() { DozerInitializer.getInstance().init(); log.info("Initializing a new instance of dozer bean mapper."); // initialize any bean mapper caches. These caches are only visible to // the bean mapper instance and // are not shared across the VM. GlobalSettings globalSettings = GlobalSettings.getInstance(); cacheManager.addCache(DozerCacheType.CONVERTER_BY_DEST_TYPE.name(), globalSettings.getConverterByDestTypeCacheMaxSize()); cacheManager.addCache(DozerCacheType.SUPER_TYPE_CHECK.name(), globalSettings.getSuperTypesCacheMaxSize()); // stats statsMgr.increment(StatisticType.MAPPER_INSTANCES_COUNT); }
private void init() { DozerInitializer.getInstance().init(); log.info("Initializing a new instance of dozer bean mapper."); // initialize any bean mapper caches. These caches are only visible to the bean mapper instance and // are not shared across the VM. GlobalSettings globalSettings = GlobalSettings.getInstance(); cacheManager.addCache(DozerCacheType.CONVERTER_BY_DEST_TYPE.name(), globalSettings.getConverterByDestTypeCacheMaxSize()); cacheManager.addCache(DozerCacheType.SUPER_TYPE_CHECK.name(), globalSettings.getSuperTypesCacheMaxSize()); // stats statsMgr.increment(StatisticType.MAPPER_INSTANCES_COUNT); }
private void init() { DozerInitializer.getInstance().init(); log.info("Initializing a new instance of dozer bean mapper."); // initialize any bean mapper caches. These caches are only visible to // the bean mapper instance and // are not shared across the VM. GlobalSettings globalSettings = GlobalSettings.getInstance(); cacheManager.addCache(DozerCacheType.CONVERTER_BY_DEST_TYPE.name(), globalSettings.getConverterByDestTypeCacheMaxSize()); cacheManager.addCache(DozerCacheType.SUPER_TYPE_CHECK.name(), globalSettings.getSuperTypesCacheMaxSize()); // stats statsMgr.increment(StatisticType.MAPPER_INSTANCES_COUNT); }