*/
public class JGTtmsConnectionFactory extends UDIGConnectionFactory {
public boolean canProcess( Object context ) {
if (context instanceof IResolve) {
IResolve resolve = (IResolve) context;
try {
// what enters should be a JGrassService, which resolves to a
// folder
return (resolve.canResolve(File.class) && resolve.resolve(File.class, null).exists()//
&& resolve.resolve(File.class, null).getName().endsWith(".mapurl"));
} catch (IOException e) {
throw (RuntimeException) new RuntimeException().initCause(e);
}
}
return false;