I need to call public methods of the rubberStampService from inside the RubberStampServiceImpl class.
To reference the rubberStampService from inside itself, can I make a self-referential bean declaration like this:
<beans:bean id="rubberStampService" class="com.rubberly.RubberStampServiceImpl">
<beans:property name="rubberStampService" ref="rubberStampService" />
</beans:bean>
Sounds like an infinitely recursive, out of memory error waiting to happen. Why not just have the service call its own method and be done with it? You don’t need a new reference, just “this”.