how to call service inside service layer
Posted
by cometta
on Stack Overflow
See other posts from Stack Overflow
or by cometta
Published on 2010-06-11T08:30:21Z
Indexed on
2010/06/11
8:32 UTC
Read the original article
Hit count: 269
in my service layer
public class MyServiceLayerImpl{
@Autowired
MyServiceInterface MyServiceLayer
}
if i have method inside service layer that need to call another service inside service layer. i cannot use this._method ,because, i'm using AOP for caching. In order for the caching to work, i have to use @Autowired to get the service. Therefore, is the above style ok?
© Stack Overflow or respective owner