I have this Spring component which I want to call from several locations in Java web application:
@Component
public class NotificationListener {
public void notificationProcess(TransactionsBean ro) {
// some code
}
}
Can I use it as a normal object in Spring or I should use other way to call the Spring code?