@BeanDefinition
public class NonVersionedRedisPositionSourceComponentFactory extends AbstractNonVersionedRedisSourceComponentFactory {
@Override
public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) throws Exception {
NonVersionedRedisPositionSource source = new NonVersionedRedisPositionSource(getRedisConnector().getJedisPool(), getRedisPrefix());
ComponentInfo positionSourceInfo = new ComponentInfo(PositionSource.class, getClassifier());
positionSourceInfo.addAttribute(ComponentInfoAttributes.LEVEL, 1);
positionSourceInfo.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemotePositionSource.class);
repo.registerComponent(positionSourceInfo, source);