SlideShare a Scribd company logo
Effective use of Spring in Liferay
Chandan Sharma
 Why use Framework (Spring)
 Use of Spring Framework in Liferay
 How can we use Spring in Liferay
 Pros and Cons
 Q n A
Effective use of Spring in Liferay
 Framework take care of infrastructure and let
you focus on your unique functionality.
 Spring is one of the popular framework.
 Flexible and Lightweight
 Spring MVC is Request Oriented web
framework
 Spring provides many sub frameworks to
make development easier Like IOC, AOP,
Spring Portlet MVC framework etc.
Effective use of Spring in Liferay
 Include support for numerous common view
technologies :
◦ JSP, JSTL, XSLT, Velocity, FreeMarker, Tiles, PDF,
Excel, JasperReport
 Easy to implement new view Technologies
 Interceptors for wrapping other concerns
around controller execution (AOP)
 Exception Resolvers to catch exception
coming out of controllers and mapping to
appropriate views
Effective use of Spring in Liferay
 Liferay Uses Spring in many modules
◦ Spring.configs in portal.properties
 Service builder generates code and
configuration of Spring for using the service
layer
◦ Injecting Dependency in service layer
◦ Hibernate
◦ Infrastructure
◦ Workflow
◦ Mail
◦ Memchached and more….
Effective use of Spring in Liferay
 Using Spring Portlet MVC
 We can create our own service layer or
override the Liferay Existing Spring
configuration
◦ When we use multiple database from the same
portal
◦ When we are writing the Junit Test cases for Service
Layer
◦ Use in hook and Ext based on configuration change
And More…
Effective use of Spring in Liferay
 Any Spring Programmer can use easily no
more learning required
 Spring IOC take care of object Lifecycle
 Get the power of annotation and sub module
 Spring MVC portlet Framwork provide
configuration based portlet we can map more
than one controller to one portlet
 Multiple view technologies can be used easily
 Use Intercepters using AOP at any layer using
xml configuration
Effective use of Spring in Liferay
 Learning of new Framwork
 In Liferay you cannot inject any depencies
from the Spring MVC context into beans held
in the ServiceBuilder context. Becaues of
context are different
 If you are using Liferay Service Builder then
you have to use XXXLocalServiceUtil()
 Some of the Portlet mode is not implemented
in Spring MVC portlet like Help and About.
Effective use of Spring in Liferay
 Portlet in Action
 Spring in Action
 http://static.springsource.org/spring/docs/3
.0.x/reference/portlet.html
 Useful Blogs
Effective use of Spring in Liferay
Effective use of Spring in Liferay
Chandan Sharma
chandansharmamca@gmail.com
http://chandansharmamca.wordpress.com

More Related Content

PDF
Let's set the record straight on the term serverless and what it’s not
PPTX
Spring boot
PPTX
ASP .Net MVC 5
PDF
Unlimited Frameworks
PPTX
Spring boot
PDF
Difference between asp.net web forms and asp.net mvc
PDF
ASP.NET MVC difference between questions list 1
PPT
Silver Light By Nyros Developer
Let's set the record straight on the term serverless and what it’s not
Spring boot
ASP .Net MVC 5
Unlimited Frameworks
Spring boot
Difference between asp.net web forms and asp.net mvc
ASP.NET MVC difference between questions list 1
Silver Light By Nyros Developer

What's hot (20)

PPT
Ruby on Rails industry trends
PDF
Difference between wcf and asp.net web api
PPTX
Spring
PPTX
Asp.net visual studio 2013
PDF
Difference between asp.net mvc 3 and asp.net mvc 4
PPTX
What is Spring Boot and Why Spring Boot ?
PDF
Difference between asp.net web api and asp.net mvc
PPT
Catalyst 1 Introduction
PPTX
Asp.net c# MVC-5 Training-Day-1 of Day-9
PPTX
Difference between MVC 3, 4, 5 and 6
PPTX
Introduction of ASP.NET MVC and AngularJS
PDF
Ektron Synergy 2014 - A Case Study in Using MVC with Ektron
PDF
ASP.Net | Sabin Saleem
PPT
MVC Architecture in ASP.Net By Nyros Developer
PPT
ASP.NET MVC Presentation
PPT
Monorail presentation at WebDevelopersCommunity, Feb 1, 2009
PDF
Moving ASP.NET MVC to ASP.NET Core
PPT
Introduction to ASP.NET MVC 1.0
PDF
70-534: ARCHITECTING MICROSOFT AZURE SOLUTIONS
PDF
Eclipse and Java 8 - Melbourne Java Meet Up
Ruby on Rails industry trends
Difference between wcf and asp.net web api
Spring
Asp.net visual studio 2013
Difference between asp.net mvc 3 and asp.net mvc 4
What is Spring Boot and Why Spring Boot ?
Difference between asp.net web api and asp.net mvc
Catalyst 1 Introduction
Asp.net c# MVC-5 Training-Day-1 of Day-9
Difference between MVC 3, 4, 5 and 6
Introduction of ASP.NET MVC and AngularJS
Ektron Synergy 2014 - A Case Study in Using MVC with Ektron
ASP.Net | Sabin Saleem
MVC Architecture in ASP.Net By Nyros Developer
ASP.NET MVC Presentation
Monorail presentation at WebDevelopersCommunity, Feb 1, 2009
Moving ASP.NET MVC to ASP.NET Core
Introduction to ASP.NET MVC 1.0
70-534: ARCHITECTING MICROSOFT AZURE SOLUTIONS
Eclipse and Java 8 - Melbourne Java Meet Up
Ad

Viewers also liked (6)

PPT
Sql presentation 1 by chandan
PPTX
Stakeholder engagement by chandan
DOCX
Soil pollution presentation
PPT
SPRING SEASON
PPTX
MySql Triggers Tutorial - The Webs Academy
PDF
Chandan singh seminar report pdf.......router
Sql presentation 1 by chandan
Stakeholder engagement by chandan
Soil pollution presentation
SPRING SEASON
MySql Triggers Tutorial - The Webs Academy
Chandan singh seminar report pdf.......router
Ad

Similar to Spring presentation By Chandan Sharma (7)

PDF
Liferay architecture By Navin Agarwal
PPTX
Liferay MVC Portlet Development with Liferay IDE
PDF
01/2009 - Portral development with liferay
PPTX
Portlet Framework: the Liferay way
ODP
Liferay vs Spring
PDF
Advanced liferay architecture clustering and high availability
PDF
Liferay Portal Introduction
Liferay architecture By Navin Agarwal
Liferay MVC Portlet Development with Liferay IDE
01/2009 - Portral development with liferay
Portlet Framework: the Liferay way
Liferay vs Spring
Advanced liferay architecture clustering and high availability
Liferay Portal Introduction

Recently uploaded (20)

PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Hybrid model detection and classification of lung cancer
PPTX
A Presentation on Touch Screen Technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
A Presentation on Artificial Intelligence
PDF
Mushroom cultivation and it's methods.pdf
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
August Patch Tuesday
Hindi spoken digit analysis for native and non-native speakers
1 - Historical Antecedents, Social Consideration.pdf
Web App vs Mobile App What Should You Build First.pdf
Encapsulation_ Review paper, used for researhc scholars
Hybrid model detection and classification of lung cancer
A Presentation on Touch Screen Technology
Building Integrated photovoltaic BIPV_UPV.pdf
DP Operators-handbook-extract for the Mautical Institute
A novel scalable deep ensemble learning framework for big data classification...
Programs and apps: productivity, graphics, security and other tools
Enhancing emotion recognition model for a student engagement use case through...
cloud_computing_Infrastucture_as_cloud_p
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
A Presentation on Artificial Intelligence
Mushroom cultivation and it's methods.pdf
WOOl fibre morphology and structure.pdf for textiles
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
MIND Revenue Release Quarter 2 2025 Press Release
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
August Patch Tuesday

Spring presentation By Chandan Sharma

  • 1. Effective use of Spring in Liferay Chandan Sharma
  • 2.  Why use Framework (Spring)  Use of Spring Framework in Liferay  How can we use Spring in Liferay  Pros and Cons  Q n A Effective use of Spring in Liferay
  • 3.  Framework take care of infrastructure and let you focus on your unique functionality.  Spring is one of the popular framework.  Flexible and Lightweight  Spring MVC is Request Oriented web framework  Spring provides many sub frameworks to make development easier Like IOC, AOP, Spring Portlet MVC framework etc. Effective use of Spring in Liferay
  • 4.  Include support for numerous common view technologies : ◦ JSP, JSTL, XSLT, Velocity, FreeMarker, Tiles, PDF, Excel, JasperReport  Easy to implement new view Technologies  Interceptors for wrapping other concerns around controller execution (AOP)  Exception Resolvers to catch exception coming out of controllers and mapping to appropriate views Effective use of Spring in Liferay
  • 5.  Liferay Uses Spring in many modules ◦ Spring.configs in portal.properties  Service builder generates code and configuration of Spring for using the service layer ◦ Injecting Dependency in service layer ◦ Hibernate ◦ Infrastructure ◦ Workflow ◦ Mail ◦ Memchached and more…. Effective use of Spring in Liferay
  • 6.  Using Spring Portlet MVC  We can create our own service layer or override the Liferay Existing Spring configuration ◦ When we use multiple database from the same portal ◦ When we are writing the Junit Test cases for Service Layer ◦ Use in hook and Ext based on configuration change And More… Effective use of Spring in Liferay
  • 7.  Any Spring Programmer can use easily no more learning required  Spring IOC take care of object Lifecycle  Get the power of annotation and sub module  Spring MVC portlet Framwork provide configuration based portlet we can map more than one controller to one portlet  Multiple view technologies can be used easily  Use Intercepters using AOP at any layer using xml configuration Effective use of Spring in Liferay
  • 8.  Learning of new Framwork  In Liferay you cannot inject any depencies from the Spring MVC context into beans held in the ServiceBuilder context. Becaues of context are different  If you are using Liferay Service Builder then you have to use XXXLocalServiceUtil()  Some of the Portlet mode is not implemented in Spring MVC portlet like Help and About. Effective use of Spring in Liferay
  • 9.  Portlet in Action  Spring in Action  http://static.springsource.org/spring/docs/3 .0.x/reference/portlet.html  Useful Blogs Effective use of Spring in Liferay
  • 10. Effective use of Spring in Liferay Chandan Sharma chandansharmamca@gmail.com http://chandansharmamca.wordpress.com