Class EPSGFactoryProxy
java.lang.Object
org.apache.sis.internal.referencing.EPSGFactoryProxy
- All Implemented Interfaces:
org.opengis.referencing.AuthorityFactory,org.opengis.util.Factory
- Direct Known Subclasses:
EPSGFactoryProxyCOP,EPSGFactoryProxyCRS,EPSGFactoryProxyCS,EPSGFactoryProxyDatum
public abstract class EPSGFactoryProxy
extends Object
implements org.opengis.referencing.AuthorityFactory
A factory that redirect all method to another factory. This factory is normally useless and not used by Apache SIS.
The sole purpose of this factory is to give an access to the EPSG factory through
ServiceLoader.
We have to use this indirection level because the EPSG factory is managed in a special way by Apache SIS.
This class will be modified on the JDK9 branch in order to replace the proxy by a static provider()
method. This will allow us to remove all the indirection level currently found in this class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal org.opengis.referencing.IdentifiedObjectcreateObject(String code) (package private) abstract org.opengis.referencing.AuthorityFactoryfactory()final org.opengis.metadata.citation.CitationgetAuthorityCodes(Class<? extends org.opengis.referencing.IdentifiedObject> type) final org.opengis.util.InternationalStringgetDescriptionText(String code) final org.opengis.metadata.citation.Citation
-
Constructor Details
-
EPSGFactoryProxy
EPSGFactoryProxy()
-
-
Method Details
-
factory
abstract org.opengis.referencing.AuthorityFactory factory() throws org.opengis.util.FactoryException- Throws:
org.opengis.util.FactoryException
-
getAuthority
public final org.opengis.metadata.citation.Citation getAuthority()- Specified by:
getAuthorityin interfaceorg.opengis.referencing.AuthorityFactory
-
getVendor
public final org.opengis.metadata.citation.Citation getVendor()- Specified by:
getVendorin interfaceorg.opengis.util.Factory
-
getDescriptionText
public final org.opengis.util.InternationalString getDescriptionText(String code) throws org.opengis.util.FactoryException - Specified by:
getDescriptionTextin interfaceorg.opengis.referencing.AuthorityFactory- Throws:
org.opengis.util.FactoryException
-
createObject
public final org.opengis.referencing.IdentifiedObject createObject(String code) throws org.opengis.util.FactoryException - Specified by:
createObjectin interfaceorg.opengis.referencing.AuthorityFactory- Throws:
org.opengis.util.FactoryException
-
getAuthorityCodes
public final Set<String> getAuthorityCodes(Class<? extends org.opengis.referencing.IdentifiedObject> type) throws org.opengis.util.FactoryException - Specified by:
getAuthorityCodesin interfaceorg.opengis.referencing.AuthorityFactory- Throws:
org.opengis.util.FactoryException
-