private static boolean matches(ComponentSpecification component, Set<ComponentSpecification> excludes) { ComponentId id = component.toId().withoutNamespace(); for (ComponentSpecification exclude : excludes) { if (exclude.matches(id)) { return true; } } return false; }
public void register(ComponentId globalComponentId, ChainedComponentModel componentModel) { assert (componentModel.getComponentId().withoutNamespace().equals( globalComponentId.withoutNamespace())); componentModels.register(globalComponentId, ComponentAdaptor.create(globalComponentId, componentModel)); }