Refactor: don't reuse JAXB objects for internal configuration; create a Configuration interface.

This commit is contained in:
Andreas Penski (init) 2020-04-21 08:34:56 +02:00
parent c8b3c1977c
commit 7a86f049ac
30 changed files with 871 additions and 517 deletions

View file

@ -0,0 +1,45 @@
package de.kosit.validationtool.impl;
import java.net.URI;
import javax.xml.transform.URIResolver;
import org.apache.commons.lang3.NotImplementedException;
/**
* Defines how artefacts are resolved internally.
*
* @author Andreas Penski
*/
public enum ResolvingMode {
/**
* Resolving using only the configured content repository. No furthing resolving allowed. This
*/
STRICT_RELATIVE {
@Override
public URI resolve(final URI source, final URI repository) {
return RelativeUriResolver.resolve(source, repository);
}
@Override
public URIResolver createResolver(final URI repository) {
return new RelativeUriResolver(repository);
}
},
STRICT_LOCAL,
JDK_SUPPORTED,
CUSTOM;
public URI resolve(final URI source, final URI repository) {
throw new NotImplementedException("Not yet implemented");
}
public URIResolver createResolver(final URI repository) {
throw new NotImplementedException("Not yet implemented");
}
}