This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="svcDynamicServiceActivator" class="DynamicServiceActivator"> | |
<property name="expressionToReplyChannel"> | |
<map> | |
<entry> | |
<key><value>getServices</value></key> | |
<list> | |
<value>@bean.getServices(headers['user'])</value> | |
<value>aggregateSvcRequests</value> | |
</list> | |
</entry> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<int-ext:dynamic-service-activator id="dynamicServiceActivator"> | |
<int-ext:method name="getService" expression="@bean.getService(headers['serviceId'],payload)" reply-channel="serviceResponse"/> | |
<int-ext:method name="getServices" expression="@bean.getServices(headers['user'])" reply-channel="aggregateSvcRequests" /> | |
</int-ext:dynamic-service-activator> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xs:annotation> | |
<xs:documentation> | |
The input channel of the chain. | |
</xs:documentation> | |
<xs:appinfo> | |
<tool:annotation kind="ref"> | |
<tool:expected-type type="org.springframework.integration.channel.DirectChannel" /> | |
</tool:annotation> | |
</xs:appinfo> | |
</xs:annotation> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void getConfigsFromZookeeper() throws IOException { | |
logger.debug("Connected to Zookeeper"); | |
synchronized(lock) { | |
try { | |
configs = trackChildren(configs); | |
} catch (Exception e) { | |
logger.error("Error tracking Zookeeper config", e); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private SubscribableChannel createInputChannel(String inputChannelName) { | |
PublishSubscribeChannel channel = new PublishSubscribeChannel(); | |
channel.setBeanName(inputChannelName); | |
channel.setBeanFactory(applicationContext); | |
//channel.setApplySequence(true); | |
((ConfigurableApplicationContext)applicationContext).getBeanFactory().registerSingleton(inputChannelName, channel); | |
return channel; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DynamicServiceActivatorBeanDefinitionParser extends AbstractSingleBeanDefinitionParser { | |
protected Class getBeanClass(Element element) { | |
return DefaultDynamicServiceActivator.class; | |
} | |
@Override | |
protected void doParse(Element element, BeanDefinitionBuilder bean) { | |
List<Element> methodElements = DomUtils.getChildElementsByTagName(element, "method"); | |
ManagedMap<String, BeanDefinition> methodMetadataMap = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'io.ratpack:ratpack-gradle:0.9.13' | |
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.0' | |
classpath 'com.bmuschko:gradle-docker-plugin:2.0' | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM peelsky/zulu-openjdk-busybox | |
WORKDIR /app | |
USER daemon | |
ADD ./build/libs/msvc-search-1.0-all.jar /app/msvc-search-1.0-all.jar | |
CMD [ "java", "-jar", "/app/msvc-search-1.0-all.jar" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.git | |
gradle* | |
.gradle | |
src | |
out | |
jumpstart* | |
msvc* | |
build/dependency-cache | |
build/classes | |
build/installShadow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'io.ratpack:ratpack-gradle:0.9.13' | |
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.0' | |
} | |
} |