Java Doc for Resolve.java in  » GIS » GeoTools-2.4.1 » org » geotools » catalog » 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.catalog 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.catalog.Resolve

All known Subclasses:   org.geotools.catalog.adaptable.AdaptingResolve,
Resolve
public interface Resolve (Code)
Interface for objects which serve has handles to actual data objects.

The resolve pattern is based on the IAdaptable pattern used extensivly by the Eclipse framework. Also known as the Extensible Interface pattern, objects implementing the IAdaptable interface morph or adapt themselves into objects implementing a different interface.

The resolve pattern is slightly different in that morphing or adapting (ie. resolving) into a different object involves a blocking call in which I/O is being performed, possibly with the local disk, or with a remote service.

The following code illustrates the use of the resolve pattern:

 
 Resolve resolve = ....
 ProgressListener listener = ....
 FeatureSource featureSource = resolve.resolve(FeatureSource.class,listener);
 if (featureSource != null) {
 //do something
 }
 
 
As a convenience, the Resolve.canResolve(Class) method is used to determine if a particular type of object is supported, but not to perform the resolve. This method can be useful in situations where it is not desirable to block.

An implementation of resolve supports the notion of resolving into a parent, or into a list of children, called members. Like any other resolve, these are blocking operations. Parents and members must also implement the Resolve interface.


author:
   David Zwiers, Refractions Research
author:
   Justin Deoliveira, The Open Planning Project
since:
   0.7.0

Inner Class :class Status



Method Summary
 voidaddListener(ResolveChangeListener listener)
     Adds a listener to the Resolve.
 booleancanResolve(Class adaptee)
     Non blocking method which is used to determine if a resolve into an instance of a particular class is supported.
Parameters:
  adaptee - Class of object to resolve into.
 voidfire(ResolveChangeEvent event)
     Fires a change event against the Resolve.
 URIgetIdentifier()
     Returns a URI which uniqley identifies the Resolve.
 ThrowablegetMessage()
     In the event that an error occurs during a resolve, that error can be reported back with this method.
 StatusgetStatus()
     Status of the resolve.
 Listmembers(ProgressListener monitor)
     Blocking method which resolves this instance into its members (children).
 Resolveparent(ProgressListener monitor)
     Blocking method which resolves this instance into its parent.
 voidremoveListener(ResolveChangeListener listener)
     Removes a listener from the Resolve.
 Objectresolve(Class adaptee, ProgressListener monitor)
     Blocking method which is used to resolve into an instance of a particular class.

Required adaptions will be listed in Abstract Classes that implement this interface.


Parameters:
  adaptee - Class of object to resolve into.
Parameters:
  monitor - Progress monitor used to report status while blocking.May be null.



Method Detail
addListener
void addListener(ResolveChangeListener listener) throws UnsupportedOperationException(Code)
Adds a listener to the Resolve. Support for event notification is up to the specific implementation.
Parameters:
  listener - The observer.
throws:
  UnsupportedOperationException - When event notification is notsupported.



canResolve
boolean canResolve(Class adaptee)(Code)
Non blocking method which is used to determine if a resolve into an instance of a particular class is supported.
Parameters:
  adaptee - Class of object to resolve into. true if a resolution for adaptee is avaialble
See Also:   IResolve.resolve(ClassProgressListener)



fire
void fire(ResolveChangeEvent event)(Code)
Fires a change event against the Resolve. Support for event notification is up to the specific implementation.
Parameters:
  event - The event describing the change.



getIdentifier
URI getIdentifier()(Code)
Returns a URI which uniqley identifies the Resolve. Id of the Resolve, should never be null.



getMessage
Throwable getMessage()(Code)
In the event that an error occurs during a resolve, that error can be reported back with this method. This method returns a value when Resolve.getStatus returns Status.BROKEN , otherwise it return null. An exception that occured during a resolve, otherwise null.
See Also:   Status



getStatus
Status getStatus()(Code)
Status of the resolve. Resolving into other types of objects often involves connecting to a remote service or resource. This method is provided to indicate the state of any connections. One of Status.BROKEN,Status.CONNECTED, orStatus.NOTCONNECTED.



members
List members(ProgressListener monitor) throws IOException(Code)
Blocking method which resolves this instance into its members (children). This method returns null if the instance does not have any children, or the children could be determined.
Parameters:
  monitor - Progress monitor used to report status while blocking.May be null. A list (possibly empty) of members, null if the members couldnot be obtained or the instance has not members. Objects in thereturned list implement the Resolve interface.
throws:
  IOException - in the result of an I/O error.



parent
Resolve parent(ProgressListener monitor) throws IOException(Code)
Blocking method which resolves this instance into its parent. This method may return null if the parent can not be determined.
Parameters:
  monitor - Progress monitor used to report status while blocking.May be null. The parent Resolve, or null if the parent can be obtained.
throws:
  IOException - in the result of an I/O error.



removeListener
void removeListener(ResolveChangeListener listener)(Code)
Removes a listener from the Resolve. Support for event notification is up to the specific implementation.
Parameters:
  listener - The observer.



resolve
Object resolve(Class adaptee, ProgressListener monitor) throws IOException(Code)
Blocking method which is used to resolve into an instance of a particular class.

Required adaptions will be listed in Abstract Classes that implement this interface.


Parameters:
  adaptee - Class of object to resolve into.
Parameters:
  monitor - Progress monitor used to report status while blocking.May be null. Instance of type adaptee, or null if the resolve is unsuported.
throws:
  IOException - in the result of an I/O error.



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