protected void init(String layer, String appContext, Map map, CallbackHandler cbh) { this.layer = layer; this.appCtxt = appContext; this.map = map; this.cbh = cbh; if (this.cbh == null) { this.cbh = getCallbackHandler(); } this.rwLock = new ReentrantReadWriteLock(true); this.rLock = rwLock.readLock(); this.wLock = rwLock.writeLock(); listenerWrapper = new AuthConfigRegistrationWrapper(this.layer, this.appCtxt); }
public void disableWithRefCount() { if (referenceCount <= 1) { disable(); if (delegate != null) { delegate.removeListener(this); } } else { try { this.wLock.lock(); referenceCount--; } finally { this.wLock.unlock(); } } }
public void disable() { this.wLock.lock(); try { setEnabled(false); } finally { data = null; this.wLock.unlock(); } if (factory != null) { String[] ids = factory.detachListener(this.listener,layer,appCtxt); // if (ids != null) { // for (int i=0; i < ids.length; i++) { // factory.removeRegistration(ids[i]); // } // } if (getJmacProviderRegisID() != null) { factory.removeRegistration(getJmacProviderRegisID()); } } }
disabled = (!listenerWrapper.isEnabled()); if (!disabled) { d = listenerWrapper.getConfigData();
disabled = (!listenerWrapper.isEnabled()); if (!disabled) { d = listenerWrapper.getConfigData();
public void disable() { this.wLock.lock(); try { setEnabled(false); } finally { this.wLock.unlock(); data = null; } if (factory != null) { String[] ids = factory.detachListener(this.listener,layer,appCtxt); // if (ids != null) { // for (int i=0; i < ids.length; i++) { // factory.removeRegistration(ids[i]); // } // } if (getJmacProviderRegisID() != null) { factory.removeRegistration(getJmacProviderRegisID()); } } }
public void disableWithRefCount() { if (referenceCount <= 1) { disable(); if (delegate != null) { delegate.removeListener(this); } } else { try { this.wLock.lock(); referenceCount--; } finally { this.wLock.unlock(); } } }
public void disable() { listenerWrapper.disable(); }
public AuthConfigRegistrationWrapper.AuthConfigRegistrationListener getRegistrationListener() { return this.listenerWrapper.getListener(); }
public AuthConfigRegistrationWrapper.AuthConfigRegistrationListener getRegistrationListener() { return this.listenerWrapper.getListener(); }
public void setJmacProviderRegisID(String jmacProviderRegisID) { this.listenerWrapper.setJmacProviderRegisID(jmacProviderRegisID); }
public void setJmacProviderRegisID(String jmacProviderRegisID) { this.listenerWrapper.setJmacProviderRegisID(jmacProviderRegisID); }
protected void init(String layer, String appContext, Map map, CallbackHandler cbh) { this.layer = layer; this.appCtxt = appContext; this.map = map; this.cbh = cbh; if (this.cbh == null) { this.cbh = getCallbackHandler(); } this.rwLock = new ReentrantReadWriteLock(true); this.rLock = rwLock.readLock(); this.wLock = rwLock.writeLock(); listenerWrapper = new AuthConfigRegistrationWrapper(this.layer, this.appCtxt); }
public void disable() { listenerWrapper.disable(); }