
org.jberet.se.ClassPathJobXmlResolver Maven / Gradle / Ivy
/*
* Copyright (c) 2015 Red Hat, Inc. and/or its affiliates.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jberet.se;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import java.util.Collections;
import org.jberet.spi.JobXmlResolver;
/**
*
* @author James R. Perkins
*/
public class ClassPathJobXmlResolver implements JobXmlResolver {
@Override
public InputStream resolveJobXml(final String jobXml, final ClassLoader classLoader) throws IOException {
return classLoader.getResourceAsStream(jobXml);
}
@Override
public Collection getJobXmlNames(final ClassLoader classLoader) {
return Collections.emptyList();
}
@Override
public String resolveJobName(final String jobXml, final ClassLoader classLoader) {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy