jodd-petite/src/main/java/jodd/petite/PetiteContainer.java
public void addBean(final String name, final Object bean, WiringMode wiringMode) {
		wiringMode = petiteConfig.resolveWiringMode(wiringMode);
		registerPetiteBean(bean.getClass(), name, SingletonScope.class, wiringMode, false, null);
		BeanDefinition def = lookupExistingBeanDefinition(name);
		registerBeanAndWireAndInjectParamsAndInvokeInitMethods(new BeanData(this, def, bean));
	}
public void addBean(final String name, final Object bean, WiringMode wiringMode) {
		wiringMode = petiteConfig.resolveWiringMode(wiringMode);
		registerPetiteBean(bean.getClass(), name, SingletonScope.class, wiringMode, false, null);
		BeanDefinition def = lookupExistingBeanDefinition(name);
		registerBeanAndWireAndInjectParamsAndInvokeInitMethods(new BeanData(this, def, bean));
	}
public void addBean ( final String name , final Object bean , WiringMode wiringMode ) { wiringMode = petiteConfig . resolveWiringMode ( wiringMode ) ; registerPetiteBean ( bean . getClass ( ) , name , SingletonScope . class , wiringMode , false , null ) ; BeanDefinition def = lookupExistingBeanDefinition ( name ) ; registerBeanAndWireAndInjectParamsAndInvokeInitMethods ( new BeanData ( this , def , bean ) ) ; }
Adds object instance to the container as singleton bean.
Adds object instance to the container as singleton bean .