Skip to content

Instantly share code, notes, and snippets.

View jbaruch's full-sized avatar
🎩
DevRel all the way

Baruch Sadogursky jbaruch

🎩
DevRel all the way
View GitHub Profile
@jbaruch
jbaruch / osoPush.groovy
Created September 15, 2011 21:31
OSO push plugin for Artifactory
/*
* Copyright (C) 2011 JFrog Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
final akkaVersion = '1.0-RC1'
final akkaGroup = 'se.scalablesolutions.akka'
dependencies {
compile group: akkaGroup, name: 'akka', version: akkaVersion
compile group: akkaGroup, name: 'akka-actor', version: akkaVersion
compile group: akkaGroup, name: 'akka-stm', version: akkaVersion
compile group: akkaGroup, name: 'akka-typed-actor', version: akkaVersion
compile group: akkaGroup, name: 'akka-remote', version: akkaVersion
@Configuration
public class ConfigurationWithSupport {
@Autowired
private ConfigurationSupport configurationSupport;
@Bean
public SomeBean someBean() {
SomeFactoryBean someFactoryBean = new SomeFactoryBean();
//configure your factoryBean here
@jbaruch
jbaruch / spring-batch-samples-mongodb.patch
Created April 29, 2010 21:18
spring-batch samples source code patched to work with mongo-db
Index: spring-batch-samples/src/main/resources/data-source-context.xml
===================================================================
--- spring-batch-samples/src/main/resources/data-source-context.xml (revision 4050)
+++ spring-batch-samples/src/main/resources/data-source-context.xml (revision )
@@ -28,6 +28,31 @@
<property name="dataSource" ref="dataSource" />
</bean>
+ <bean id="mongoInitializer" class="org.springframework.batch.mongo.config.MongoDbInitializer">
+ <property name="db" ref="db"/>