@Override public Collection<Job> load(ApplicationContextFactory factory) throws DuplicateJobException { return doLoad(factory, false); }
@Override public Collection<Job> reload(ApplicationContextFactory factory) { // If the same factory is loaded twice the context can be closed if (contexts.containsKey(factory)) { ConfigurableApplicationContext context = contexts.get(factory); for (String name : contextToJobNames.get(context)) { if (logger.isDebugEnabled()) { logger.debug("Unregistering job: " + name + " from context: " + context.getDisplayName()); } doUnregister(name); } context.close(); } try { return doLoad(factory, true); } catch (DuplicateJobException e) { throw new IllegalStateException("Found duplicate job in reload (it should have been unregistered " + "if it was previously registered in this loader)", e); } }
@Override public Collection<Job> load(ApplicationContextFactory factory) throws DuplicateJobException { return doLoad(factory, false); }
@Override public Collection<Job> load(ApplicationContextFactory factory) throws DuplicateJobException { return doLoad(factory, false); }
@Override public Collection<Job> load(ApplicationContextFactory factory) throws DuplicateJobException { return doLoad(factory, false); }
public Collection<Job> load(ApplicationContextFactory factory) throws DuplicateJobException { return doLoad(factory, false); }
@Override public Collection<Job> reload(ApplicationContextFactory factory) { // If the same factory is loaded twice the context can be closed if (contexts.containsKey(factory)) { ConfigurableApplicationContext context = contexts.get(factory); for (String name : contextToJobNames.get(context)) { logger.debug("Unregistering job: " + name + " from context: " + context.getDisplayName()); doUnregister(name); } context.close(); } try { return doLoad(factory, true); } catch (DuplicateJobException e) { throw new IllegalStateException("Found duplicate job in reload (it should have been unregistered " + "if it was previously registered in this loader)", e); } }
@Override public Collection<Job> reload(ApplicationContextFactory factory) { // If the same factory is loaded twice the context can be closed if (contexts.containsKey(factory)) { ConfigurableApplicationContext context = contexts.get(factory); for (String name : contextToJobNames.get(context)) { if (logger.isDebugEnabled()) { logger.debug("Unregistering job: " + name + " from context: " + context.getDisplayName()); } doUnregister(name); } context.close(); } try { return doLoad(factory, true); } catch (DuplicateJobException e) { throw new IllegalStateException("Found duplicate job in reload (it should have been unregistered " + "if it was previously registered in this loader)", e); } }
public Collection<Job> reload(ApplicationContextFactory factory) { // If the same factory is loaded twice the context can be closed if (contexts.containsKey(factory)) { ConfigurableApplicationContext context = contexts.get(factory); for (String name : contextToJobNames.get(context)) { logger.debug("Unregistering job: " + name + " from context: " + context.getDisplayName()); jobRegistry.unregister(name); } context.close(); } try { return doLoad(factory, true); } catch (DuplicateJobException e) { throw new IllegalStateException("Found duplicte job in reload (it should have been unregistered " + "if it was previously registered in this loader)", e); } }
@Override public Collection<Job> reload(ApplicationContextFactory factory) { // If the same factory is loaded twice the context can be closed if (contexts.containsKey(factory)) { ConfigurableApplicationContext context = contexts.get(factory); for (String name : contextToJobNames.get(context)) { if (logger.isDebugEnabled()) { logger.debug("Unregistering job: " + name + " from context: " + context.getDisplayName()); } doUnregister(name); } context.close(); } try { return doLoad(factory, true); } catch (DuplicateJobException e) { throw new IllegalStateException("Found duplicate job in reload (it should have been unregistered " + "if it was previously registered in this loader)", e); } }