Revision 229 org.gvsig.projection.jcrs/trunk/org.gvsig.projection.jcrs/org.gvsig.projection.jcrs.lib/src/main/java/org/gvsig/crs/repository/NoAuthRepository.java
NoAuthRepository.java | ||
---|---|---|
50 | 50 |
|
51 | 51 |
import es.idr.teledeteccion.connection.EpsgConnection; |
52 | 52 |
import es.idr.teledeteccion.connection.Query; |
53 |
import org.gvsig.tools.dispose.Disposable; |
|
53 | 54 |
|
54 | 55 |
/** |
55 | 56 |
* Repository for CRS without Auth, for example CRS:84 |
56 | 57 |
* @author jldominguez |
57 | 58 |
* |
58 | 59 |
*/ |
59 |
public class NoAuthRepository implements ICrsRepository { |
|
60 |
public class NoAuthRepository implements ICrsRepository, Disposable {
|
|
60 | 61 |
private static final Logger logger = |
61 | 62 |
LoggerFactory.getLogger(NoAuthRepository.class); |
62 | 63 |
|
... | ... | |
103 | 104 |
|
104 | 105 |
} |
105 | 106 |
|
107 |
|
|
108 |
public void dispose() { |
|
109 |
try { |
|
110 |
this.connection.shutdown(); |
|
111 |
this.connection = null; |
|
112 |
} catch (SQLException ex) { |
|
113 |
logger.warn("Con't shutdown the connection.",ex); |
|
114 |
} |
|
115 |
} |
|
106 | 116 |
} |
Also available in: Unified diff