public RegistrationAction(Instantiator instantiator) {
this.instantiator = instantiator;
}
public void execute(final RegistrationContext<ComponentSpec, BaseComponentSpec> context) {
ExtensionContainer extensions = context.getExtensions();
ProjectSourceSet projectSourceSet = extensions.getByType(ProjectSourceSet.class);
ComponentSpecContainer componentSpecs = extensions.getByType(ComponentSpecContainer.class);
doRegister(context.getType(), context.getImplementation(), projectSourceSet, componentSpecs, context.getProjectIdentifier());
}