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