/** * Bindings from higher in the hierarchy take precedence * * @param componentReference the top service * @param componentTypeReference the bottom service */ private void calculateBindings(Reference componentReference, Reference componentTypeReference) { // forward bindings if (componentReference.getBindings().isEmpty()) { componentReference.getBindings().addAll(componentTypeReference.getBindings()); } // callback bindings if (componentReference.getCallback() == null) { componentReference.setCallback(componentTypeReference.getCallback()); } else if (componentReference.getCallback().getBindings().isEmpty() && componentTypeReference.getCallback() != null) { componentReference.getCallback().getBindings().addAll(componentTypeReference.getCallback().getBindings()); } }
/** * Bindings from higher in the hierarchy take precedence * * @param componentReference the top service * @param componentTypeReference the bottom service */ private void calculateBindings(Reference componentReference, Reference componentTypeReference) { // forward bindings if (componentReference.getBindings().isEmpty()) { componentReference.getBindings().addAll(componentTypeReference.getBindings()); } // callback bindings if (componentReference.getCallback() == null) { componentReference.setCallback(componentTypeReference.getCallback()); } else if (componentReference.getCallback().getBindings().isEmpty() && componentTypeReference.getCallback() != null) { componentReference.getCallback().getBindings().addAll(componentTypeReference.getCallback().getBindings()); } }
if (reference.getCallback() != null) { Callback callback = reference.getCallback(); writeStart(writer, CALLBACK, policyProcessor.writePolicies(callback));
if (reference.getCallback() != null) { Callback callback = reference.getCallback(); writeStart(writer, CALLBACK, policyProcessor.writePolicies(callback));
if (reference.getCallback() != null) { Callback callback = reference.getCallback(); writeStart(writer, CALLBACK);
if (reference.getCallback() != null) { Callback callback = reference.getCallback(); writeStart(writer, CALLBACK);