public void destroy() { if(getReflectionBuilder() != null) { getReflectionBuilder().destroy(); } }
private Map<String, ?> buildInstances(Ini.Section section) { return getReflectionBuilder().buildObjects(section); }
private SecurityManager getSecurityManagerBean() { return getReflectionBuilder().getBean(SECURITY_MANAGER_NAME, SecurityManager.class); }
@SuppressWarnings({"unchecked"}) private SecurityManager createSecurityManager(Ini ini, Ini.Section mainSection) { getReflectionBuilder().setObjects(createDefaults(ini, mainSection)); Map<String, ?> objects = buildInstances(mainSection); SecurityManager securityManager = getSecurityManagerBean(); boolean autoApplyRealms = isAutoApplyRealms(securityManager); if (autoApplyRealms) { //realms and realm factory might have been created - pull them out first so we can //initialize the securityManager: Collection<Realm> realms = getRealms(objects); //set them on the SecurityManager if (!CollectionUtils.isEmpty(realms)) { applyRealmsToSecurityManager(realms, securityManager); } } return securityManager; }
public void destroy() { if(getReflectionBuilder() != null) { getReflectionBuilder().destroy(); } }
private SecurityManager getSecurityManagerBean() { return getReflectionBuilder().getBean(SECURITY_MANAGER_NAME, SecurityManager.class); }
private Map<String, ?> buildInstances(Ini.Section section) { return getReflectionBuilder().buildObjects(section); }
@SuppressWarnings({"unchecked"}) private SecurityManager createSecurityManager(Ini ini, Ini.Section mainSection) { getReflectionBuilder().setObjects(createDefaults(ini, mainSection)); Map<String, ?> objects = buildInstances(mainSection); SecurityManager securityManager = getSecurityManagerBean(); boolean autoApplyRealms = isAutoApplyRealms(securityManager); if (autoApplyRealms) { //realms and realm factory might have been created - pull them out first so we can //initialize the securityManager: Collection<Realm> realms = getRealms(objects); //set them on the SecurityManager if (!CollectionUtils.isEmpty(realms)) { applyRealmsToSecurityManager(realms, securityManager); } } return securityManager; }