Java Doc for DeferredAuthorityFactory.java in  » GIS » GeoTools-2.4.1 » org » geotools » referencing » factory » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.referencing.factory 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.referencing.factory.ReferencingFactory
   org.geotools.referencing.factory.AbstractAuthorityFactory
      org.geotools.referencing.factory.BufferedAuthorityFactory
         org.geotools.referencing.factory.DeferredAuthorityFactory

All known Subclasses:   org.geotools.referencing.factory.epsg.LongitudeFirstFactory,  org.geotools.referencing.factory.epsg.ThreadedEpsgFactory,  org.geotools.referencing.factory.epsg.FactoryUsingWKT,
DeferredAuthorityFactory
abstract public class DeferredAuthorityFactory extends BufferedAuthorityFactory implements OptionalFactory(Code)
A buffered authority factory which will defer the until when first needed. This approach allow to etablish a connection to a database (for example) only when first needed. In addition, the backing store can be automatically disposed after a timeout and recreated when needed again.
since:
   2.1
version:
   $Id: DeferredAuthorityFactory.java 25972 2007-06-21 13:38:35Z desruisseaux $
author:
   Martin DesruisseauxBufferedAuthorityFactory



Constructor Summary
protected  DeferredAuthorityFactory(Hints userHints, int priority)
     Constructs an instance without initial backing store.
protected  DeferredAuthorityFactory(Hints userHints, int priority, int maxStrongReferences)
     Constructs an instance without initial backing store.

Method Summary
protected  booleancanDisposeBackingStore(AbstractAuthorityFactory backingStore)
     Returns true if the backing store can be disposed now.
abstract protected  AbstractAuthorityFactorycreateBackingStore()
     Creates the backing store authority factory.
public synchronized  voiddispose()
     Releases resources immediately instead of waiting for the garbage collector.
final  AbstractAuthorityFactorygetBackingStore()
     Returns the backing store authority factory.
public  booleanisAvailable()
     Returns true if this factory is available.
public synchronized  booleanisConnected()
     Returns true if this deferred factory is connected to its backing store.
public synchronized  voidsetTimeout(long delay)
     Set a timer for disposing the backing store after the specified amount of milliseconds of inactivity.


Constructor Detail
DeferredAuthorityFactory
protected DeferredAuthorityFactory(Hints userHints, int priority)(Code)
Constructs an instance without initial backing store. Subclasses are responsible for creating an appropriate backing store when the DeferredAuthorityFactory.createBackingStore method is invoked.
Parameters:
  userHints - An optional set of hints, or null if none.
Parameters:
  priority - The priority for this factory, as a number betweenDeferredAuthorityFactory.MINIMUM_PRIORITY MINIMUM_PRIORITY andDeferredAuthorityFactory.MAXIMUM_PRIORITY MAXIMUM_PRIORITY inclusive.
See Also:   DeferredAuthorityFactory.createBackingStore
since:
   2.2



DeferredAuthorityFactory
protected DeferredAuthorityFactory(Hints userHints, int priority, int maxStrongReferences)(Code)
Constructs an instance without initial backing store. Subclasses are responsible for creating an appropriate backing store when the DeferredAuthorityFactory.createBackingStore method is invoked.
Parameters:
  userHints - An optional set of hints, or null if none.
Parameters:
  priority - The priority for this factory, as a number betweenDeferredAuthorityFactory.MINIMUM_PRIORITY MINIMUM_PRIORITY andDeferredAuthorityFactory.MAXIMUM_PRIORITY MAXIMUM_PRIORITY inclusive.
Parameters:
  maxStrongReferences - The maximum number of objects to keep by strong reference.
See Also:   DeferredAuthorityFactory.createBackingStore
since:
   2.2




Method Detail
canDisposeBackingStore
protected boolean canDisposeBackingStore(AbstractAuthorityFactory backingStore)(Code)
Returns true if the backing store can be disposed now. This method is invoked automatically after the amount of time specified by DeferredAuthorityFactory.setTimeout if the factory were not used during that time. The default implementation always returns true . Subclasses should override this method and returns false if they want to prevent the backing store disposal under some circonstances.
Parameters:
  backingStore - The backing store in process of being disposed.



createBackingStore
abstract protected AbstractAuthorityFactory createBackingStore() throws FactoryException(Code)
Creates the backing store authority factory. This method is invoked the first time a createXXX(...) method is invoked. The backing store to uses in createXXX(...) methods.
throws:
  FactoryNotFoundException - if the backing store has not been found.
throws:
  FactoryException - if the creation of backing store failed for an other reason.



dispose
public synchronized void dispose() throws FactoryException(Code)
Releases resources immediately instead of waiting for the garbage collector. This method disposes the backing store regardeless of DeferredAuthorityFactory.canDisposeBackingStore value.



getBackingStore
final AbstractAuthorityFactory getBackingStore() throws FactoryException(Code)
Returns the backing store authority factory. The backing store to uses in createXXX(...) methods.
throws:
  FactoryException - if the creation of backing store failed.



isAvailable
public boolean isAvailable()(Code)
Returns true if this factory is available. The default implementation returns false if DeferredAuthorityFactory.createBackingStore throws an exception.



isConnected
public synchronized boolean isConnected()(Code)
Returns true if this deferred factory is connected to its backing store. This method returns false if no createFoo method has been invoked, if the backing store has been automatically disposed after the or if this factoy has been .



setTimeout
public synchronized void setTimeout(long delay)(Code)
Set a timer for disposing the backing store after the specified amount of milliseconds of inactivity. The DeferredAuthorityFactory.createBackingStore method will be responsible for creating a new backing store when needed. Note that the backing store disposal can be vetoed if DeferredAuthorityFactory.canDisposeBackingStore returns false .
Parameters:
  delay - The minimal delay before to close the backing store. This delay is veryapproximative. The backing store will not be closed before, but may take asmuch as twice that time before to be closed.



Fields inherited from org.geotools.referencing.factory.BufferedAuthorityFactory
final static int DEFAULT_MAX(Code)(Java Doc)
AbstractAuthorityFactory backingStore(Code)(Java Doc)

Methods inherited from org.geotools.referencing.factory.BufferedAuthorityFactory
final void completeHints()(Code)(Java Doc)
public synchronized CartesianCS createCartesianCS(String code) throws FactoryException(Code)(Java Doc)
public synchronized CompoundCRS createCompoundCRS(String code) throws FactoryException(Code)(Java Doc)
public synchronized CoordinateOperation createCoordinateOperation(String code) throws FactoryException(Code)(Java Doc)
public synchronized CoordinateReferenceSystem createCoordinateReferenceSystem(String code) throws FactoryException(Code)(Java Doc)
public synchronized CoordinateSystem createCoordinateSystem(String code) throws FactoryException(Code)(Java Doc)
public synchronized CoordinateSystemAxis createCoordinateSystemAxis(String code) throws FactoryException(Code)(Java Doc)
public synchronized CylindricalCS createCylindricalCS(String code) throws FactoryException(Code)(Java Doc)
public synchronized Datum createDatum(String code) throws FactoryException(Code)(Java Doc)
public synchronized DerivedCRS createDerivedCRS(String code) throws FactoryException(Code)(Java Doc)
public synchronized Ellipsoid createEllipsoid(String code) throws FactoryException(Code)(Java Doc)
public synchronized EllipsoidalCS createEllipsoidalCS(String code) throws FactoryException(Code)(Java Doc)
public synchronized EngineeringCRS createEngineeringCRS(String code) throws FactoryException(Code)(Java Doc)
public synchronized EngineeringDatum createEngineeringDatum(String code) throws FactoryException(Code)(Java Doc)
public synchronized Extent createExtent(String code) throws FactoryException(Code)(Java Doc)
public synchronized Set createFromCoordinateReferenceSystemCodes(String sourceCode, String targetCode) throws FactoryException(Code)(Java Doc)
public synchronized GeocentricCRS createGeocentricCRS(String code) throws FactoryException(Code)(Java Doc)
public synchronized GeodeticDatum createGeodeticDatum(String code) throws FactoryException(Code)(Java Doc)
public synchronized GeographicCRS createGeographicCRS(String code) throws FactoryException(Code)(Java Doc)
public synchronized ImageCRS createImageCRS(String code) throws FactoryException(Code)(Java Doc)
public synchronized ImageDatum createImageDatum(String code) throws FactoryException(Code)(Java Doc)
public synchronized IdentifiedObject createObject(String code) throws FactoryException(Code)(Java Doc)
public synchronized OperationMethod createOperationMethod(String code) throws FactoryException(Code)(Java Doc)
public synchronized ParameterDescriptor createParameterDescriptor(String code) throws FactoryException(Code)(Java Doc)
public synchronized PolarCS createPolarCS(String code) throws FactoryException(Code)(Java Doc)
public synchronized PrimeMeridian createPrimeMeridian(String code) throws FactoryException(Code)(Java Doc)
public synchronized ProjectedCRS createProjectedCRS(String code) throws FactoryException(Code)(Java Doc)
public synchronized SphericalCS createSphericalCS(String code) throws FactoryException(Code)(Java Doc)
public synchronized TemporalCRS createTemporalCRS(String code) throws FactoryException(Code)(Java Doc)
public synchronized TemporalDatum createTemporalDatum(String code) throws FactoryException(Code)(Java Doc)
public synchronized TimeCS createTimeCS(String code) throws FactoryException(Code)(Java Doc)
public synchronized Unit createUnit(String code) throws FactoryException(Code)(Java Doc)
public synchronized VerticalCRS createVerticalCRS(String code) throws FactoryException(Code)(Java Doc)
public synchronized VerticalCS createVerticalCS(String code) throws FactoryException(Code)(Java Doc)
public synchronized VerticalDatum createVerticalDatum(String code) throws FactoryException(Code)(Java Doc)
Collection dependencies()(Code)(Java Doc)
public synchronized void dispose() throws FactoryException(Code)(Java Doc)
public synchronized Citation getAuthority()(Code)(Java Doc)
public synchronized Set getAuthorityCodes(Class type) throws FactoryException(Code)(Java Doc)
AbstractAuthorityFactory getBackingStore() throws FactoryException(Code)(Java Doc)
public synchronized String getBackingStoreDescription() throws FactoryException(Code)(Java Doc)
public synchronized InternationalString getDescriptionText(String code) throws FactoryException(Code)(Java Doc)
public synchronized IdentifiedObjectFinder getIdentifiedObjectFinder(Class type) throws FactoryException(Code)(Java Doc)
public synchronized Citation getVendor()(Code)(Java Doc)
synchronized boolean isAvailable()(Code)(Java Doc)
boolean sameAuthorityCodes(AuthorityFactory factory)(Code)(Java Doc)

Methods inherited from org.geotools.referencing.factory.AbstractAuthorityFactory
public CartesianCS createCartesianCS(String code) throws FactoryException(Code)(Java Doc)
public CompoundCRS createCompoundCRS(String code) throws FactoryException(Code)(Java Doc)
public CoordinateOperation createCoordinateOperation(String code) throws FactoryException(Code)(Java Doc)
public CoordinateReferenceSystem createCoordinateReferenceSystem(String code) throws FactoryException(Code)(Java Doc)
public CoordinateSystem createCoordinateSystem(String code) throws FactoryException(Code)(Java Doc)
public CoordinateSystemAxis createCoordinateSystemAxis(String code) throws FactoryException(Code)(Java Doc)
public CylindricalCS createCylindricalCS(String code) throws FactoryException(Code)(Java Doc)
public Datum createDatum(String code) throws FactoryException(Code)(Java Doc)
public DerivedCRS createDerivedCRS(String code) throws FactoryException(Code)(Java Doc)
public Ellipsoid createEllipsoid(String code) throws FactoryException(Code)(Java Doc)
public EllipsoidalCS createEllipsoidalCS(String code) throws FactoryException(Code)(Java Doc)
public EngineeringCRS createEngineeringCRS(String code) throws FactoryException(Code)(Java Doc)
public EngineeringDatum createEngineeringDatum(String code) throws FactoryException(Code)(Java Doc)
public Extent createExtent(String code) throws FactoryException(Code)(Java Doc)
public Set createFromCoordinateReferenceSystemCodes(String sourceCode, String targetCode) throws FactoryException(Code)(Java Doc)
public GeocentricCRS createGeocentricCRS(String code) throws FactoryException(Code)(Java Doc)
public GeodeticDatum createGeodeticDatum(String code) throws FactoryException(Code)(Java Doc)
public GeographicCRS createGeographicCRS(String code) throws FactoryException(Code)(Java Doc)
public ImageCRS createImageCRS(String code) throws FactoryException(Code)(Java Doc)
public ImageDatum createImageDatum(String code) throws FactoryException(Code)(Java Doc)
public IdentifiedObject createObject(String code) throws FactoryException(Code)(Java Doc)
public OperationMethod createOperationMethod(String code) throws FactoryException(Code)(Java Doc)
public ParameterDescriptor createParameterDescriptor(String code) throws FactoryException(Code)(Java Doc)
public PolarCS createPolarCS(String code) throws FactoryException(Code)(Java Doc)
public PrimeMeridian createPrimeMeridian(String code) throws FactoryException(Code)(Java Doc)
public ProjectedCRS createProjectedCRS(String code) throws FactoryException(Code)(Java Doc)
public SphericalCS createSphericalCS(String code) throws FactoryException(Code)(Java Doc)
public TemporalCRS createTemporalCRS(String code) throws FactoryException(Code)(Java Doc)
public TemporalDatum createTemporalDatum(String code) throws FactoryException(Code)(Java Doc)
public TimeCS createTimeCS(String code) throws FactoryException(Code)(Java Doc)
public Unit createUnit(String code) throws FactoryException(Code)(Java Doc)
public VerticalCRS createVerticalCRS(String code) throws FactoryException(Code)(Java Doc)
public VerticalCS createVerticalCS(String code) throws FactoryException(Code)(Java Doc)
public VerticalDatum createVerticalDatum(String code) throws FactoryException(Code)(Java Doc)
public void dispose() throws FactoryException(Code)(Java Doc)
abstract public Citation getAuthority()(Code)(Java Doc)
public String getBackingStoreDescription() throws FactoryException(Code)(Java Doc)
public IdentifiedObjectFinder getIdentifiedObjectFinder(Class type) throws FactoryException(Code)(Java Doc)
boolean isAvailable()(Code)(Java Doc)
final protected NoSuchAuthorityCodeException noSuchAuthorityCode(Class type, String code)(Code)(Java Doc)
boolean sameAuthorityCodes(AuthorityFactory factory)(Code)(Java Doc)
protected String trimAuthority(String code)(Code)(Java Doc)

Fields inherited from org.geotools.referencing.factory.ReferencingFactory
final static Citation ALL(Code)(Java Doc)
final public static Logger LOGGER(Code)(Java Doc)

Methods inherited from org.geotools.referencing.factory.ReferencingFactory
Collection dependencies()(Code)(Java Doc)
protected static void ensureNonNull(String name, Object object) throws InvalidParameterValueException(Code)(Java Doc)
public Citation getVendor()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.