public void debug(CharSequence msg) { debug(msg, null); }
public void debug(CharSequence msg) { debug(msg, null); }
private InjectorProvider getInjectImplementation(Logger log, Map<String, String> config) throws Exception { String inject = config.get(INJECT); if (inject == null) { log.debug("No inject implementation specified will detect one available"); TreeMap<Integer, InjectorProvider> providers = new TreeMap<Integer, InjectorProvider>(); for (InjectorProvider provider : InjectorProvider.values()) { if (provider.isAvailable()) { log.debug("Inject implementation " + provider.getValue() + " available"); providers.put(provider.getPriority(), provider); } else { log.debug("Inject implementation " + provider.getValue() + " not available"); if (i.hasNext()) { InjectorProvider implementation = i.next(); log.debug("Selected " + implementation.get() + " inject implementation"); return implementation; } else { log.debug("No inject implementation available"); return null; InjectorProvider implementation = InjectorProvider.find(inject); if (implementation == null) { log.debug("Inject implementation " + inject + " not available"); return null; } else {
private InjectorProvider getInjectImplementation(Logger log, Map<String, String> config) throws Exception { String inject = config.get(INJECT); if (inject == null) { log.debug("No inject implementation specified will detect one available"); TreeMap<Integer, InjectorProvider> providers = new TreeMap<Integer, InjectorProvider>(); for (InjectorProvider provider : InjectorProvider.values()) { if (provider.isAvailable()) { log.debug("Inject implementation " + provider.getValue() + " available"); providers.put(provider.getPriority(), provider); } else { log.debug("Inject implementation " + provider.getValue() + " not available"); if (i.hasNext()) { InjectorProvider implementation = i.next(); log.debug("Selected " + implementation.get() + " inject implementation"); return implementation; } else { log.debug("No inject implementation available"); return null; InjectorProvider implementation = InjectorProvider.find(inject); if (implementation == null) { log.debug("Inject implementation " + inject + " not available"); return null; } else {