src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordedClassLoader.java
branchJEP-349-branch
changeset 57460 bcbc53560c77
parent 50113 caf115bb98ad
child 58112 e7754025004b
equal deleted inserted replaced
57459:df39f8d8f4d6 57460:bcbc53560c77
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 package jdk.jfr.consumer;
    26 package jdk.jfr.consumer;
    27 
    27 
    28 import java.util.List;
       
    29 
       
    30 import jdk.jfr.ValueDescriptor;
       
    31 import jdk.jfr.internal.Type;
    28 import jdk.jfr.internal.Type;
    32 
    29 
    33 /**
    30 /**
    34  * A recorded Java class loader.
    31  * A recorded Java class loader.
    35  *
    32  *
    36  * @since 9
    33  * @since 9
    37  */
    34  */
    38 public final class RecordedClassLoader extends RecordedObject {
    35 public final class RecordedClassLoader extends RecordedObject {
    39 
    36 
    40     static ObjectFactory<RecordedClassLoader> createFactory(Type type, TimeConverter timeConverter) {
    37     static ObjectFactory<RecordedClassLoader> createFactory(Type type, TimeConverter timeConverter) {
    41         return new ObjectFactory<RecordedClassLoader>(type) {
    38         return new ObjectFactory<RecordedClassLoader>(type, timeConverter) {
    42             @Override
    39             @Override
    43             RecordedClassLoader createTyped(List<ValueDescriptor> desc, long id, Object[] object) {
    40             RecordedClassLoader createTyped(ObjectContext objectContext, long id, Object[] values) {
    44                 return new RecordedClassLoader(desc, id, object, timeConverter);
    41                 return new RecordedClassLoader(objectContext, id, values);
    45             }
    42             }
    46         };
    43         };
    47     }
    44     }
    48 
    45 
    49     private final long uniqueId;
    46     private final long uniqueId;
    50 
    47 
    51     // package private
    48     // package private
    52     private RecordedClassLoader(List<ValueDescriptor> descriptors, long id, Object[] values, TimeConverter timeConverter) {
    49     private RecordedClassLoader(ObjectContext objectContext, long id, Object[] values) {
    53         super(descriptors, values, timeConverter);
    50         super(objectContext, values);
    54         this.uniqueId = id;
    51         this.uniqueId = id;
    55     }
    52     }
    56 
    53 
    57     /**
    54     /**
    58      * Returns the class of the class loader.
    55      * Returns the class of the class loader.