private void connectInformalBinding(
IComponent container,
IComponent component,
String bindingName)
{
IComponentSpecification componentSpec = component.getSpecification();
IComponentSpecification containerSpec = container.getSpecification();
// check if binding already exists in the component
if (component.getBinding(bindingName) != null)
return;
// check if parameter is informal for the component
if (componentSpec.getParameter(bindingName) != null
|| componentSpec.isReservedParameterName(bindingName))
return;
// check if parameter is informal for the container
if (containerSpec.getParameter(bindingName) != null
|| containerSpec.isReservedParameterName(bindingName))
return;
// if everything passes, establish binding
IBinding binding = container.getBinding(bindingName);
component.setBinding(bindingName, binding);