/** * Creates a cylindrical coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public CylindricalCS createCylindricalCS(final String code) throws FactoryException { return (CylindricalCS) replace( getCSAuthorityFactory(code) .createCylindricalCS(toBackingFactoryCode(code))); }
public CylindricalCS createCylindricalCS(String code) throws FactoryException { final String key = toKey(code); CylindricalCS cs = (CylindricalCS) cache.get(key); if (cs == null) { try { cache.writeLock(key); cs = (CylindricalCS) cache.peek(key); if (cs == null) { cs = csAuthority.createCylindricalCS(code); cache.put(key, cs); } } finally { cache.writeUnLock(key); } } return cs; }
@Override CylindricalCS createFromAPI(AuthorityFactory factory, String code) throws FactoryException { return csFactory(factory).createCylindricalCS(code); } };
@Override CylindricalCS createFromAPI(AuthorityFactory factory, String code) throws FactoryException { return csFactory(factory).createCylindricalCS(code); } };