Java Doc for IResolve.java in  » GIS » udig-1.1 » net » refractions » udig » 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 » udig 1.1 » net.refractions.udig.catalog 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.refractions.udig.catalog.IResolve

All known Subclasses:   net.refractions.udig.catalog.IService,  net.refractions.udig.catalog.IGeoResource,  net.refractions.udig.catalog.ICatalog,
IResolve
public interface IResolve (Code)
Blocking IAdaptable, used to contact external services.
author:
   David Zwiers, Refractions Research
since:
   0.7.0
See Also:   IAdaptable

Inner Class :public enum Status



Method Summary
public  booleancanResolve(Class<T> adaptee)
     Required adaptions will be listed in Abstract Classes under the resolve() method.
public  voiddispose(IProgressMonitor monitor)
     Clean up after aquired resources - the handle will not function after being disposed.
abstract public  URLgetIdentifier()
     A unique resource identifier ...
public  ThrowablegetMessage()
     Text description for this serice status.
public  StatusgetStatus()
     Status information for this service.
public  List<? extends IResolve>members(IProgressMonitor monitor)
     Contents of this handle, Collections.EMPTY_LIST iff this is a leaf.
Parameters:
  monitor - Monitor used to provide feedback during member lookup List, possibly empty, of members.
public  IResolveparent(IProgressMonitor monitor)
     The parent of this handle, may be null if parent unknown.
public  Tresolve(Class<T> adaptee, IProgressMonitor monitor)
     Will attempt to morph into the adaptee, and return that object.

Required adaptions will be listed in Abstract Classes, along with the method they will call.




Method Detail
canResolve
public boolean canResolve(Class<T> adaptee)(Code)
Required adaptions will be listed in Abstract Classes under the resolve() method.

Restrictions on implementations:

  • May not Block
  • *MUST NOT* throw any exceptions (be sure to check for null!)
  • Must delegate to ResolveManger - to recognize adapters contributed by others
When defining a new AbstractClass you are also asked to please list the required adaptations in your javadocs.

The following code example shows intended practice:


 public  boolean canResolve( Class adaptee ){
 return adaptee != null && (
 adaptee.isAssignableFrom(TYPE.class) ||
 CatalogPlugin.getDefault().getResolveManager().canResolve(this, adaptee)
 );
 }
 

See Also:    IResolve#resolve(Class, IProgressMonitor); true if a resolution for adaptee is avaialble



dispose
public void dispose(IProgressMonitor monitor)(Code)
Clean up after aquired resources - the handle will not function after being disposed.
Parameters:
  monitor -



getIdentifier
abstract public URL getIdentifier()(Code)
A unique resource identifier ... this should be unique for each service. Must Not Block. ID for this IResolve, should not be null.



getMessage
public Throwable getMessage()(Code)
Text description for this serice status.

For a BROKEN status this will contain the error message, null will be returned if there is nothing interesting to report.

Not the Exception is ecpected to be in humar readable, terms.

Text describing service status



getStatus
public Status getStatus()(Code)
Status information for this service.

In the future this may be extended into a bit mask of connection status.

Status of the resource



members
public List<? extends IResolve> members(IProgressMonitor monitor) throws IOException(Code)
Contents of this handle, Collections.EMPTY_LIST iff this is a leaf.
Parameters:
  monitor - Monitor used to provide feedback during member lookup List, possibly empty, of members. Will be EMPTY_LIST if this is a leaf.
throws:
  IOException - in the event of a technical problem



parent
public IResolve parent(IProgressMonitor monitor) throws IOException(Code)
The parent of this handle, may be null if parent unknown.
Parameters:
  monitor - used to provide feedback during parent lookup Parent IResolve, null if unknown
throws:
  IOException - in the event of a technical problem



resolve
public T resolve(Class<T> adaptee, IProgressMonitor monitor) throws IOException(Code)
Will attempt to morph into the adaptee, and return that object.

Required adaptions will be listed in Abstract Classes, along with the method they will call. IResolve implementations are encouraged to follow this practice - documenting what adapters are required.

The extensible interface pattern also demands that the set of adapters be open-ended; we have provided an extention point to let others teach the system new tricks at configuration time.

Here is a code example that every implementation needs to follow in order to make use of the IResolveManager:
  • TYPE - an example required class (like URL.class)
  • METHOD - an example method that will produce the adapter

 public  T resolve( Class adaptee, IProgressMonitor monitor ) throws IOException {
 if (monitor == null)
 monitor = new NullProgressMonitor();
 if (adaptee == null)
 throw new NullPointerException("No adaptor specified" );
 if (adaptee.isAssignableFrom(TYPE.class)) {
 return adaptee.cast(METHOD(monitor));
 }
 ...
 IResolveManager rm = CatalogPlugin.getDefault().getResolveManager();
 if (rm.canResolve(this, adaptee)) {
 return rm.resolve(this, adaptee, monitor);
 }
 return null; // could not find adapter
 }
May Block.
Parameters:
  adaptee -
Parameters:
  monitor - May Be Null Instance of type adaptee, or null if adaptee is unsuported.
throws:
  IOException - if result was unavailable due to a technical problem



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