Hi,
how can I configure the following dependencies with Spring?
If I ask for a bean of type Gateway, Alpha and Beta should get the same instance of class Queue. (but no singleton!)Code:Queue<String> queue = new ArrayBlockingQueue<String>(10); Alpha alpha = new Alpha(queue); Beta beta = new Beta(queue); Gateway gateway = new Gateway(alpha, beta);
~Thomas


Reply With Quote