private void initSSLUtils() { if (sslUtils == null) { if (Globals.getDefaultHabitat() != null) { sslUtils = Globals.getDefaultHabitat().getService(SSLUtils.class); } else { sslUtils = new SSLUtils(); sslUtils.postConstruct(); } } } }
private void initSSLUtils() { if (sslUtils == null) { if (Globals.getDefaultHabitat() != null) { sslUtils = Globals.getDefaultHabitat().getByType(SSLUtils.class); } else { sslUtils = new SSLUtils(); sslUtils.postConstruct(); } } } }
protected BaseContainerCallbackHandler() { if(Globals.getDefaultHabitat() == null){ sslUtils = new SSLUtils(); secSup = SecuritySupport.getDefaultInstance(); masterPasswordHelper = null; sslUtils.postConstruct(); } else { sslUtils = Globals.getDefaultHabitat().getComponent(SSLUtils.class); secSup = Globals.getDefaultHabitat().getByContract(SecuritySupport.class); masterPasswordHelper = Globals.getDefaultHabitat().getComponent(MasterPassword.class, "Security SSL Password Provider Service"); } }
protected BaseContainerCallbackHandler() { if(Globals.getDefaultHabitat() == null){ sslUtils = new SSLUtils(); secSup = SecuritySupport.getDefaultInstance(); masterPasswordHelper = null; sslUtils.postConstruct(); } else { sslUtils = Globals.getDefaultHabitat().getService(SSLUtils.class); secSup = Globals.getDefaultHabitat().getService(SecuritySupport.class); masterPasswordHelper = Globals.getDefaultHabitat().getService(MasterPassword.class, "Security SSL Password Provider Service"); } }