Reputation: 161
It is a basic question. What is the main advantages of using the service builder? If my portlet doesn't have anything to do with database, everything is of using webservices, will service builder help in any case like caching? will the service builder provides service layer, so that i can apply AOP on it ?
Upvotes: 1
Views: 189
Reputation: 126
You can create a Service without any attrs, so service builder will create all the services and injections for these services.
The advantage maybe could be having a service wrapper, You can also use Liferay Catching solution. For example you use services classes, and create method that calls Web Services.
Well there you can use the liferay cache solution.You can take a look to this class: MultiVMPoolUtil.java
Hope this helps
Upvotes: 1