/** * Destroys dependent instance * * @param instance * @return true if the instance was destroyed, false otherwise */ public boolean destroyDependentInstance(T instance) { synchronized (dependentInstances) { for (Iterator<ContextualInstance<?>> iterator = dependentInstances.iterator(); iterator.hasNext();) { ContextualInstance<?> contextualInstance = iterator.next(); if (contextualInstance.getInstance() == instance) { iterator.remove(); destroy(contextualInstance); return true; } } } return false; }
/** * Destroys dependent instance * * @param instance * @return true if the instance was destroyed, false otherwise */ public boolean destroyDependentInstance(T instance) { synchronized (dependentInstances) { for (Iterator<ContextualInstance<?>> iterator = dependentInstances.iterator(); iterator.hasNext();) { ContextualInstance<?> contextualInstance = iterator.next(); if (contextualInstance.getInstance() == instance) { iterator.remove(); destroy(contextualInstance); return true; } } } return false; }
/** * Destroys dependent instance * * @param instance * @return true if the instance was destroyed, false otherwise */ public boolean destroyDependentInstance(T instance) { synchronized (dependentInstances) { for (Iterator<ContextualInstance<?>> iterator = dependentInstances.iterator(); iterator.hasNext();) { ContextualInstance<?> contextualInstance = iterator.next(); if (contextualInstance.getInstance() == instance) { iterator.remove(); destroy(contextualInstance); return true; } } } return false; }
/** * Destroys dependent instance * * @param instance * @return true if the instance was destroyed, false otherwise */ public boolean destroyDependentInstance(T instance) { synchronized (dependentInstances) { for (Iterator<ContextualInstance<?>> iterator = dependentInstances.iterator(); iterator.hasNext();) { ContextualInstance<?> contextualInstance = iterator.next(); if (contextualInstance.getInstance() == instance) { iterator.remove(); destroy(contextualInstance); return true; } } } return false; }
private static <T> void destroy(ContextualInstance<T> beanInstance) { beanInstance.getContextual().destroy(beanInstance.getInstance(), beanInstance.getCreationalContext()); }
private static <T> void destroy(ContextualInstance<T> beanInstance) { beanInstance.getContextual().destroy(beanInstance.getInstance(), beanInstance.getCreationalContext()); }
private static <T> void destroy(ContextualInstance<T> beanInstance) { beanInstance.getContextual().destroy(beanInstance.getInstance(), beanInstance.getCreationalContext()); }
private static <T> void destroy(ContextualInstance<T> beanInstance) { beanInstance.getContextual().destroy(beanInstance.getInstance(), beanInstance.getCreationalContext()); }
private static <T> void destroy(ContextualInstance<T> beanInstance) { beanInstance.getContextual().destroy(beanInstance.getInstance(), beanInstance.getCreationalContext()); }
private static <T> void destroy(ContextualInstance<T> beanInstance) { beanInstance.getContextual().destroy(beanInstance.getInstance(), beanInstance.getCreationalContext()); }
private <T> void destroyContextualInstance(ContextualInstance<T> instance) { instance.getContextual().destroy(instance.getInstance(), instance.getCreationalContext()); ContextLogger.LOG.contextualInstanceRemoved(instance, this); }
private <T> void destroyContextualInstance(ContextualInstance<T> instance) { instance.getContextual().destroy(instance.getInstance(), instance.getCreationalContext()); ContextLogger.LOG.contextualInstanceRemoved(instance, this); }
private <T> void destroyContextualInstance(ContextualInstance<T> instance) { instance.getContextual().destroy(instance.getInstance(), instance.getCreationalContext()); ContextLogger.LOG.contextualInstanceRemoved(instance, this); }
private <T> void destroyContextualInstance(ContextualInstance<T> instance) { instance.getContextual().destroy(instance.getInstance(), instance.getCreationalContext()); ContextLogger.LOG.contextualInstanceRemoved(instance, this); }
private <T> void destroyContextualInstance(ContextualInstance<T> instance) { instance.getContextual().destroy(instance.getInstance(), instance.getCreationalContext()); ContextLogger.LOG.contextualInstanceRemoved(instance, this); }
private <T> void destroyContextualInstance(ContextualInstance<T> instance) { instance.getContextual().destroy(instance.getInstance(), instance.getCreationalContext()); ContextLogger.LOG.contextualInstanceRemoved(instance, this); }
private <T> void destroyContextualInstance(ContextualInstance<T> instance) { instance.getContextual().destroy(instance.getInstance(), instance.getCreationalContext()); ContextLogger.LOG.contextualInstanceRemoved(instance, this); }
private <T> void destroyContextualInstance(ContextualInstance<T> instance) { instance.getContextual().destroy(instance.getInstance(), instance.getCreationalContext()); ContextLogger.LOG.contextualInstanceRemoved(instance, this); }
private <T> void destroyContextualInstance(ContextualInstance<T> instance) { instance.getContextual().destroy(instance.getInstance(), instance.getCreationalContext()); ContextLogger.LOG.contextualInstanceRemoved(instance, this); }
private <T> void destroyContextualInstance(ContextualInstance<T> instance) { instance.getContextual().destroy(instance.getInstance(), instance.getCreationalContext()); ContextLogger.LOG.contextualInstanceRemoved(instance, this); }