public Reflection(ClassLoader classLoader, BypassConstructorAllocator instanceFactory) { this.classLoader = classLoader; this.instanceFactory = (instanceFactory != null ? instanceFactory : new SunBypassConstructorAllocator()); this.lexicalPropertyComparator = new Comparator<Property>() { public int compare(Property p1, Property p2) { return p1.getName().compareTo(p2.getName()); } }; this.serializablePropertiesCache = new ConcurrentHashMap<Class<?>, List<Property>>(); this.singlePropertyCache = new ConcurrentHashMap<SinglePropertyKey, Property>(); }
public Reflection(ClassLoader classLoader, BypassConstructorAllocator instanceFactory) { this.classLoader = classLoader; if (instanceFactory != null) this.instanceFactory = instanceFactory; else { try { this.instanceFactory = new SunBypassConstructorAllocator(); } catch (Exception e) { throw new RuntimeException("Could not instantiate BypassConstructorAllocator", e); } } this.lexicalPropertyComparator = new Comparator<Property>() { public int compare(Property p1, Property p2) { return p1.getName().compareTo(p2.getName()); } }; this.descriptorCache = new ConcurrentHashMap<Class<?>, ClassDescriptor>(); this.singlePropertyCache = new ConcurrentHashMap<SinglePropertyKey, Property>(); }
public Reflection(ClassLoader classLoader, BypassConstructorAllocator instanceFactory) { this.classLoader = classLoader; if (instanceFactory != null) this.instanceFactory = instanceFactory; else { try { this.instanceFactory = new SunBypassConstructorAllocator(); } catch (Exception e) { throw new RuntimeException("Could not instantiate BypassConstructorAllocator", e); } } this.lexicalPropertyComparator = new Comparator<Property>() { public int compare(Property p1, Property p2) { return p1.getName().compareTo(p2.getName()); } }; this.descriptorCache = new ConcurrentHashMap<Class<?>, ClassDescriptor>(); this.singlePropertyCache = new ConcurrentHashMap<SinglePropertyKey, Property>(); }
public Reflection(ClassLoader classLoader, BypassConstructorAllocator instanceFactory) { this.classLoader = classLoader; if (instanceFactory != null) this.instanceFactory = instanceFactory; else { try { this.instanceFactory = new SunBypassConstructorAllocator(); } catch (Exception e) { throw new RuntimeException("Could not instantiate BypassConstructorAllocator", e); } } this.lexicalPropertyComparator = new Comparator<Property>() { public int compare(Property p1, Property p2) { return p1.getName().compareTo(p2.getName()); } }; this.descriptorCache = new ConcurrentHashMap<Class<?>, ClassDescriptor>(); this.singlePropertyCache = new ConcurrentHashMap<SinglePropertyKey, Property>(); }