io.zbus.rpc.bootstrap.http.SpringServiceBootstrap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zbus Show documentation
Show all versions of zbus Show documentation
a lightweight yet powerful MQ and RPC to build service bus
package io.zbus.rpc.bootstrap.http;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import io.zbus.rpc.Remote;
public class SpringServiceBootstrap extends ServiceBootstrap implements ApplicationContextAware {
private ApplicationContext context;
@Override
public void setApplicationContext(ApplicationContext context) throws BeansException {
this.context = context;
}
@Override
protected void initProcessor() {
Map table = context.getBeansWithAnnotation(Remote.class);
for(Object remoteInstance : table.values()){
processor.addModule(remoteInstance);
}
}
public void setModuleList(List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy