@Override public String[] getRegistrationIDs(AuthConfigProvider provider) { String[] elytronRegistrationIds = elytronAuthConfigFactory.getRegistrationIDs(provider); String[] backupRegistrationIds = backupAuthConfigFactory.getRegistrationIDs(provider); return combine(elytronRegistrationIds, backupRegistrationIds); }
@Override public String[] getRegistrationIDs(AuthConfigProvider provider) { String[] elytronRegistrationIds = elytronAuthConfigFactory.getRegistrationIDs(provider); String[] backupRegistrationIds = backupAuthConfigFactory.getRegistrationIDs(provider); return combine(elytronRegistrationIds, backupRegistrationIds); }
@Override public String[] getRegistrationIDs(AuthConfigProvider provider) { String[] elytronRegistrationIds = elytronAuthConfigFactory.getRegistrationIDs(provider); String[] backupRegistrationIds = backupAuthConfigFactory.getRegistrationIDs(provider); return combine(elytronRegistrationIds, backupRegistrationIds); }
/** * Check if there is a provider register for a given layer and appCtxt. */ protected boolean hasExactMatchAuthProvider() { boolean exactMatch = false; // XXX this may need to be optimized AuthConfigProvider p = factory.getConfigProvider(layer, appCtxt, null); if (p != null) { String[] IDs = factory.getRegistrationIDs(p); for (String i : IDs) { RegistrationContext c = factory.getRegistrationContext(i); if (layer.equals(c.getMessageLayer()) && appCtxt.equals(c.getAppContext())) { exactMatch = true; break; } } } return exactMatch; }
/** * Check if there is a provider register for a given layer and appCtxt. */ protected boolean hasExactMatchAuthProvider() { boolean exactMatch = false; // XXX this may need to be optimized AuthConfigProvider p = factory.getConfigProvider(layer, appCtxt, null); if (p != null) { String[] IDs = factory.getRegistrationIDs(p); for (String i : IDs) { RegistrationContext c = factory.getRegistrationContext(i); if (layer.equals(c.getMessageLayer()) && appCtxt.equals(c.getAppContext())) { exactMatch = true; break; } } } return exactMatch; }
HashSet<String> toBeUnregistered = new HashSet<String>(); String[] regID = getFactory().getRegistrationIDs(this); for (String i : regID) { if (selfRegistered.contains(i)) {
HashSet<String> toBeUnregistered = new HashSet<String>(); String[] regID = getFactory().getRegistrationIDs(this); for (String i : regID) { if (selfRegistered.contains(i)) {
/** * to be called by refresh on provider subclass, and after subclass impl. * has reloaded its underlying configuration system. * Note: Spec is silent as to whether self-registrations should be reprocessed. */ public void oldRefresh() { if (getFactory() != null) { String[] regID = getFactory().getRegistrationIDs(this); for (String i : regID) { if (selfRegistered.contains(i)) { RegistrationContext c = getFactory().getRegistrationContext(i); if (c != null && !c.isPersistent()) { getFactory().removeRegistration(i); } } } } epochCarrier.increment(); selfRegister(); }
/** * to be called by refresh on provider subclass, and after subclass impl. * has reloaded its underlying configuration system. * Note: Spec is silent as to whether self-registrations should be reprocessed. */ public void oldRefresh() { if (getFactory() != null) { String[] regID = getFactory().getRegistrationIDs(this); for (String i : regID) { if (selfRegistered.contains(i)) { RegistrationContext c = getFactory().getRegistrationContext(i); if (c != null && !c.isPersistent()) { getFactory().removeRegistration(i); } } } } epochCarrier.increment(); selfRegister(); }