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