public ObjectName activateComponent(File installationDir, Component component,
String description, ComponentContextImpl context,
ActivationSpec activationSpec, boolean pojo,
boolean binding, boolean service, String[] sharedLibraries) throws JBIException {
ObjectName result = null;
ComponentNameSpace cns = new ComponentNameSpace(getName(), activationSpec.getComponentName());
LOGGER.info("Activating component {}", cns);
ComponentMBeanImpl lcc = registry.registerComponent(cns, description, component, binding, service, sharedLibraries);
if (lcc != null) {
lcc.setPojo(pojo);
ComponentEnvironment env = environmentContext.registerComponent(context.getEnvironment(), lcc);