< prev index next >

src/hotspot/share/classfile/klassFactory.hpp

Print this page




  57  *
  58  *   On broken invariants and/or runtime errors the returned value will be
  59  *   NULL (or a NULL handle) and the caller *might* now have a pending exception.
  60  *
  61  */
  62 
  63 class KlassFactory : AllStatic {
  64 
  65   // approved clients
  66   friend class ClassLoader;
  67   friend class ClassLoaderExt;
  68   friend class SystemDictionary;
  69 
  70  private:
  71   static InstanceKlass* create_from_stream(ClassFileStream* stream,
  72                                            Symbol* name,
  73                                            ClassLoaderData* loader_data,
  74                                            Handle protection_domain,
  75                                            const InstanceKlass* unsafe_anonymous_host,
  76                                            GrowableArray<Handle>* cp_patches,




  77                                            TRAPS);
  78  public:
  79   static InstanceKlass* check_shared_class_file_load_hook(
  80                                           InstanceKlass* ik,
  81                                           Symbol* class_name,
  82                                           Handle class_loader,
  83                                           Handle protection_domain,
  84                                           const ClassFileStream *cfs,
  85                                           TRAPS);
  86 };
  87 
  88 #endif // SHARE_CLASSFILE_KLASSFACTORY_HPP


  57  *
  58  *   On broken invariants and/or runtime errors the returned value will be
  59  *   NULL (or a NULL handle) and the caller *might* now have a pending exception.
  60  *
  61  */
  62 
  63 class KlassFactory : AllStatic {
  64 
  65   // approved clients
  66   friend class ClassLoader;
  67   friend class ClassLoaderExt;
  68   friend class SystemDictionary;
  69 
  70  private:
  71   static InstanceKlass* create_from_stream(ClassFileStream* stream,
  72                                            Symbol* name,
  73                                            ClassLoaderData* loader_data,
  74                                            Handle protection_domain,
  75                                            const InstanceKlass* unsafe_anonymous_host,
  76                                            GrowableArray<Handle>* cp_patches,
  77                                            const bool is_nonfindable,
  78                                            const bool can_access_vm_annotations,
  79                                            InstanceKlass* dynamic_nest_host,
  80                                            Handle classData,
  81                                            TRAPS);
  82  public:
  83   static InstanceKlass* check_shared_class_file_load_hook(
  84                                           InstanceKlass* ik,
  85                                           Symbol* class_name,
  86                                           Handle class_loader,
  87                                           Handle protection_domain,
  88                                           const ClassFileStream *cfs,
  89                                           TRAPS);
  90 };
  91 
  92 #endif // SHARE_CLASSFILE_KLASSFACTORY_HPP
< prev index next >