YaafiToAvalonContextMapper mapper = new YaafiToAvalonContextMapper(
serviceComponent.getName(),
this.getClassLoader()
);
RoleEntry roleEntry = serviceComponent.getRoleEntry();
String componentFlavour = roleEntry.getComponentFlavour();
DefaultContext serviceComponentContext = mapper.mapTo(
this.getContext(),
componentFlavour
);
// add the read/write lock to the context
serviceComponentContext.put(
URN_YAAFI_KERNELLOCK,
this.readWriteLock
);
// create the remaining Avalon artifacts for the service component
Logger serviceComponentLogger = this.getLogger().getChildLogger(
roleEntry.getLogCategory()
);
Configuration serviceComponentConfiguraton = this.getServiceConfiguration().getChild(
roleEntry.getShorthand()
);
Parameters serviceComponentParameters = this.getParameters();
// configure the service component with all the artifacts