setAutowireContext(autowire);
scopeIndex = new ConcurrentHashMap<String, ScopeContext>();
}
public void registerJavaObject(String componentName, Class<?> service, Object instance) throws ConfigurationException {
SystemObjectContextFactory configuration = new SystemObjectContextFactory(componentName, instance);
registerConfiguration(configuration);
ScopeContext scope = scopeContexts.get(configuration.getScope());
registerAutowireInternal(service, componentName, scope);
}