In the Blueprint programming model, you use the scope setting to determine whether a bean manager creates single or multiple object instances.
The following Blueprint XML example code shows how to set a singleton scope for a bean manager.
<bean id=”singletonAccount” class=“org.apache.aries.simple.Account” scope=”singleton”> <argument value=”5”/> </bean>
The following Blueprint XML example code shows how to set a prototype scope for a bean manager.
<bean id=”prototypeAccount” class=“org.apache.aries.simple.Account” scope=”prototype”> <argument value=”4”/> </bean>