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


java.lang.Object
   javax.imageio.spi.ServiceRegistry
      org.geotools.factory.FactoryRegistry
         org.geotools.factory.FactoryCreator

FactoryCreator
public class FactoryCreator extends FactoryRegistry (Code)
A capable to creates factories if no appropriate instance was found in the registry.

This class maintains a cache of previously created factories, as . Calls to FactoryCreator.getServiceProvider getServiceProvider first check if a previously created factory can fit.
since:
   2.1
version:
   $Id: FactoryCreator.java 29058 2008-02-03 17:47:07Z desruisseaux $
author:
   Martin Desruisseaux
author:
   Jody Garnett




Constructor Summary
public  FactoryCreator(Class category)
     Constructs a new registry for the specified category.
public  FactoryCreator(Class[] categories)
     Constructs a new registry for the specified categories.
public  FactoryCreator(Collection categories)
     Constructs a new registry for the specified categories.

Method Summary
protected  ObjectcreateServiceProvider(Class category, Class implementation, Hints hints)
     Creates a new instance of the specified factory using the specified hints. The default implementation tries to instantiate the given implementation class using the first of the following constructor found:

  • Constructor with a single Hints argument.
  • No-argument constructor.

Parameters:
  category - The category to instantiate.
Parameters:
  implementation - The factory class to instantiate.
Parameters:
  hints - The implementation hints.
final  ListgetCachedProviders(Class category)
     Returns the providers available in the cache.
public  ObjectgetServiceProvider(Class category, Filter filter, Hints hints, Hints.Key key)
     Returns a provider for the specified category, using the specified map of hints (if any). If a provider matching the requirements is found in the registry, it is returned.


Constructor Detail
FactoryCreator
public FactoryCreator(Class category)(Code)
Constructs a new registry for the specified category.
Parameters:
  category - The single category.
since:
   2.4



FactoryCreator
public FactoryCreator(Class[] categories)(Code)
Constructs a new registry for the specified categories.
Parameters:
  categories - The categories.
since:
   2.4



FactoryCreator
public FactoryCreator(Collection categories)(Code)
Constructs a new registry for the specified categories.
Parameters:
  categories - The categories.




Method Detail
createServiceProvider
protected Object createServiceProvider(Class category, Class implementation, Hints hints) throws FactoryRegistryException(Code)
Creates a new instance of the specified factory using the specified hints. The default implementation tries to instantiate the given implementation class using the first of the following constructor found:

  • Constructor with a single Hints argument.
  • No-argument constructor.

Parameters:
  category - The category to instantiate.
Parameters:
  implementation - The factory class to instantiate.
Parameters:
  hints - The implementation hints. The factory.
throws:
  FactoryRegistryException - if the factory creation failed.



getCachedProviders
final List getCachedProviders(Class category)(Code)
Returns the providers available in the cache. To be used by FactoryRegistry .



getServiceProvider
public Object getServiceProvider(Class category, Filter filter, Hints hints, Hints.Key key) throws FactoryRegistryException(Code)
Returns a provider for the specified category, using the specified map of hints (if any). If a provider matching the requirements is found in the registry, it is returned. Otherwise, a new provider is created and returned. This creation step is the only difference between this method and the .
Parameters:
  category - The category to look for.
Parameters:
  filter - An optional filter, or null if none.
Parameters:
  hints - A , or null if none.
Parameters:
  key - The key to use for looking for a user-provided instance in the hints, or null if none. A factory for the specified category and hints (never null ).
throws:
  FactoryNotFoundException - if no factory was found, and the specified hints don'tprovide suffisient information for creating a new factory.
throws:
  FactoryRegistryException - if the factory can't be created for some other reason.



Fields inherited from org.geotools.factory.FactoryRegistry
final protected static Logger LOGGER(Code)(Java Doc)

Methods inherited from org.geotools.factory.FactoryRegistry
List getCachedProviders(Class category)(Code)(Java Doc)
final public Set getClassLoaders()(Code)(Java Doc)
public Object getServiceProvider(Class category, Filter filter, Hints hints, Hints.Key key) throws FactoryRegistryException(Code)(Java Doc)
public Iterator getServiceProviders(Class category)(Code)(Java Doc)
public Iterator getServiceProviders(Class category, Filter filter, Hints hints)(Code)(Java Doc)
final Iterator getUnfilteredProviders(Class category)(Code)(Java Doc)
final boolean isAcceptable(Object candidate, Class category, Hints hints, Filter filter)(Code)(Java Doc)
protected boolean isAcceptable(Object provider, Class category, Hints hints)(Code)(Java Doc)
public void scanForPlugins()(Code)(Java Doc)
public boolean setOrdering(Class category, Comparator comparator)(Code)(Java Doc)
public boolean setOrdering(Class base, boolean set, Filter service1, Filter service2)(Code)(Java Doc)

Methods inherited from javax.imageio.spi.ServiceRegistry
public boolean contains(Object provider)(Code)(Java Doc)
public void deregisterAll(Class category)(Code)(Java Doc)
public void deregisterAll()(Code)(Java Doc)
public boolean deregisterServiceProvider(T provider, Class<T> category)(Code)(Java Doc)
public void deregisterServiceProvider(Object provider)(Code)(Java Doc)
public void finalize() throws Throwable(Code)(Java Doc)
public Iterator<Class<?>> getCategories()(Code)(Java Doc)
public T getServiceProviderByClass(Class<T> providerClass)(Code)(Java Doc)
public Iterator<T> getServiceProviders(Class<T> category, boolean useOrdering)(Code)(Java Doc)
public Iterator<T> getServiceProviders(Class<T> category, Filter filter, boolean useOrdering)(Code)(Java Doc)
public static Iterator<T> lookupProviders(Class<T> providerClass, ClassLoader loader)(Code)(Java Doc)
public static Iterator<T> lookupProviders(Class<T> providerClass)(Code)(Java Doc)
public boolean registerServiceProvider(T provider, Class<T> category)(Code)(Java Doc)
public void registerServiceProvider(Object provider)(Code)(Java Doc)
public void registerServiceProviders(Iterator providers)(Code)(Java Doc)
public boolean setOrdering(Class<T> category, T firstProvider, T secondProvider)(Code)(Java Doc)
public boolean unsetOrdering(Class<T> category, T firstProvider, T secondProvider)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.