/** * (Internal use only) Register a <code>NativeObject</code> with the manager. */ public void registerObject(NativeObject obj) { if (obj.getId() <= 0) { throw new IllegalArgumentException("object id must be greater than zero"); } NativeObjectRef ref = new NativeObjectRef(refQueue, obj); refMap.put(obj.getUniqueId(), ref); obj.setNativeObjectManager(this); if (logger.isLoggable(Level.FINEST)) { logger.log(Level.FINEST, "Registered: {0}", new String[]{obj.toString()}); } }
} else { NativeObjectRef ref2 = refMap.remove(obj.getUniqueId()); if (ref2 == null) { throw new IllegalArgumentException("The " + obj + " NativeObject is not "
/** * (Internal use only) Register a <code>NativeObject</code> with the manager. */ public void registerObject(NativeObject obj) { if (obj.getId() <= 0) { throw new IllegalArgumentException("object id must be greater than zero"); } NativeObjectRef ref = new NativeObjectRef(refQueue, obj); refMap.put(obj.getUniqueId(), ref); obj.setNativeObjectManager(this); if (logger.isLoggable(Level.FINEST)) { logger.log(Level.FINEST, "Registered: {0}", new String[]{obj.toString()}); } }
} else { NativeObjectRef ref2 = refMap.remove(obj.getUniqueId()); if (ref2 == null) { throw new IllegalArgumentException("The " + obj + " NativeObject is not "