@Test public void testCanProcess() { assertFalse(factory.canProcess(null)); Map<String, Serializable> params = new HashMap<String, Serializable>(); assertFalse(factory.canProcess(params)); String jndiRef = "java:comp/env/MyArcSdeResource"; params.put(ArcSDEJNDIDataStoreFactory.JNDI_REFNAME.key, jndiRef); assertTrue(factory.canProcess(params)); }
public boolean canProcess(Map<String, Serializable> params) { if (params == null) { return false; } String lookUpKey; try { lookUpKey = (String) JNDI_REFNAME.lookUp(params); } catch (IOException e) { return false; } if (lookUpKey == null) { return false; } return true; }
ArcSDEJNDIDataStoreFactory implements DataStoreFactorySpi { public boolean canProcess(Map<String, Serializable> params) { if (params == null) { return false; } String lookUpKey; try { lookUpKey = (String) JNDI_REFNAME.lookUp(params); } catch (IOException e) { return false; } if (lookUpKey == null) { return false; } return true; } }
ArcSDEJNDIDataStoreFactory implements DataStoreFactorySpi { public boolean canProcess(Map<String, Serializable> params) { if (params == null) { return false; } String lookUpKey; try { lookUpKey = (String) JNDI_REFNAME.lookUp(params); } catch (IOException e) { return false; } if (lookUpKey == null) { return false; } return true; } ArcSDEJNDIDataStoreFactory(); }
ArcSDEJNDIDataStoreFactory implements DataStoreFactorySpi { public boolean canProcess(Map<String, Serializable> params) { if (params == null) { return false; } String lookUpKey; try { lookUpKey = (String) JNDI_REFNAME.lookUp(params); } catch (IOException e) { return false; } if (lookUpKey == null) { return false; } return true; } ArcSDEJNDIDataStoreFactory(); DataStore createDataStore(Map<String, Serializable> params); boolean canProcess(Map<String, Serializable> params); String getDescription(); String getDisplayName(); Param[] getParametersInfo(); boolean isAvailable(); Map<Key, ?> getImplementationHints(); DataStore createNewDataStore(Map<String, Serializable> params); }
ArcSDEJNDIDataStoreFactory implements DataStoreFactorySpi { public boolean canProcess(Map<String, Serializable> params) { if (params == null) { return false; } String lookUpKey; try { lookUpKey = (String) JNDI_REFNAME.lookUp(params); } catch (IOException e) { return false; } if (lookUpKey == null) { return false; } return true; } ArcSDEJNDIDataStoreFactory(); DataStore createDataStore(Map<String, Serializable> params); boolean canProcess(Map<String, Serializable> params); String getDescription(); String getDisplayName(); Param[] getParametersInfo(); boolean isAvailable(); Map<Key, ?> getImplementationHints(); DataStore createNewDataStore(Map<String, Serializable> params); static final Param JNDI_REFNAME; }