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