@Test(expected = UnsupportedOperationException.class) public void testUnavailableDispatcherRegisterThrowsException() throws Exception { new NexusAccessor.Dispatcher.Unavailable("unavailable").register(FOO, classLoader, null, BAR, loadedTypeInitializer); }
public static void register(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification, Object typeInitializer) { TYPE_INITIALIZERS.put(new Nexus(name, classLoader, referenceQueue, identification), typeInitializer); }
Nexus extends WeakReference<ClassLoader> { public static void register(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification, Object typeInitializer) { TYPE_INITIALIZERS.put(new Nexus(name, classLoader, referenceQueue, identification), typeInitializer); } }
Nexus extends WeakReference<ClassLoader> { public static void register(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification, Object typeInitializer) { TYPE_INITIALIZERS.put(new Nexus(name, classLoader, referenceQueue, identification), typeInitializer); } private  Nexus(Class<?> type, int identification); private  Nexus(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification); }
Nexus extends WeakReference<ClassLoader> { public static void register(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification, Object typeInitializer) { TYPE_INITIALIZERS.put(new Nexus(name, classLoader, referenceQueue, identification), typeInitializer); } private  Nexus(Class<?> type, int identification); private  Nexus(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification); @SuppressWarnings("unused") static void initialize(Class<?> type, int identification); static void register(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification, Object typeInitializer); static void clean(Reference<? super ClassLoader> reference); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString(); }
Nexus extends WeakReference<ClassLoader> { public static void register(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification, Object typeInitializer) { TYPE_INITIALIZERS.put(new Nexus(name, classLoader, referenceQueue, identification), typeInitializer); } private  Nexus(Class<?> type, int identification); private  Nexus(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification); @SuppressWarnings("unused") static void initialize(Class<?> type, int identification); static void register(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification, Object typeInitializer); static void clean(Reference<? super ClassLoader> reference); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString(); static final String PROPERTY; }