2008-05-06 Kai Tietz <kai.tietz@onevision.com>
[official-gcc.git] / libjava / javax / imageio / spi / ServiceRegistry.h
blob79a48fe3fd5c78b37e2bc5218f3f1170db3bb368
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_imageio_spi_ServiceRegistry__
5 #define __javax_imageio_spi_ServiceRegistry__
7 #pragma interface
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace javax
16 namespace imageio
18 namespace spi
20 class ServiceRegistry;
21 class ServiceRegistry$Filter;
27 class javax::imageio::spi::ServiceRegistry : public ::java::lang::Object
30 public:
31 ServiceRegistry(::java::util::Iterator *);
32 static ::java::util::Iterator * lookupProviders(::java::lang::Class *, ::java::lang::ClassLoader *);
33 static ::java::util::Iterator * lookupProviders(::java::lang::Class *);
34 virtual ::java::util::Iterator * getCategories();
35 private:
36 jboolean registerServiceProvider(::java::lang::Object *, jint);
37 public:
38 virtual jboolean registerServiceProvider(::java::lang::Object *, ::java::lang::Class *);
39 virtual void registerServiceProvider(::java::lang::Object *);
40 virtual void registerServiceProviders(::java::util::Iterator *);
41 private:
42 jboolean deregisterServiceProvider(::java::lang::Object *, jint);
43 public:
44 virtual jboolean deregisterServiceProvider(::java::lang::Object *, ::java::lang::Class *);
45 virtual void deregisterServiceProvider(::java::lang::Object *);
46 virtual void deregisterAll(::java::lang::Class *);
47 virtual void deregisterAll();
48 virtual void finalize();
49 virtual jboolean contains(::java::lang::Object *);
50 private:
51 jint getCategoryID(::java::lang::Class *);
52 public:
53 virtual ::java::util::Iterator * getServiceProviders(::java::lang::Class *, jboolean);
54 virtual ::java::util::Iterator * getServiceProviders(::java::lang::Class *, ::javax::imageio::spi::ServiceRegistry$Filter *, jboolean);
55 virtual ::java::lang::Object * getServiceProviderByClass(::java::lang::Class *);
56 virtual jboolean setOrdering(::java::lang::Class *, ::java::lang::Object *, ::java::lang::Object *);
57 virtual jboolean unsetOrdering(::java::lang::Class *, ::java::lang::Object *, ::java::lang::Object *);
58 private:
59 jboolean addConstraint(jint, ::java::lang::Object *, ::java::lang::Object *);
60 jboolean removeConstraint(jint, ::java::lang::Object *, ::java::lang::Object *);
61 public: // actually package-private
62 JArray< ::java::lang::Class * > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) categories;
63 private:
64 JArray< ::java::util::LinkedList * > * providers;
65 JArray< ::java::util::IdentityHashMap * > * constraints;
66 public:
67 static ::java::lang::Class class$;
70 #endif // __javax_imageio_spi_ServiceRegistry__