private boolean componentMustBeAddedToGraph(ComponentDeclaration cd) { if(m_componentState == ComponentState.ALL) { return true; } else if(m_componentState == ComponentState.UNREGISTERED) { return cd.getState() == ComponentDeclaration.STATE_UNREGISTERED; } return false; }
private void invokeSwap(String swapMethod, ServiceEventImpl previous, ServiceEventImpl current, Object[] instances) { if (m_debug) { System.out.println("invoke swap: " + swapMethod + " on component " + m_component + ", instances: " + Arrays.toString(instances) + " - " + ((ComponentDeclaration)m_component).getState());