Fórum
spring hook
Pilar Hidalgo, modificado 11 Anos atrás.
spring hook
New Member Postagens: 14 Data de Entrada: 10/04/12 Postagens Recentes
Hi all,
I have a portlet that I need that it has information when system loads. I have thought a solution with spring. The doubt is if can be done to a hook by spring to do this initial load . I understand that this code is foreign to the portlet. thanks for your help!!
I have a portlet that I need that it has information when system loads. I have thought a solution with spring. The doubt is if can be done to a hook by spring to do this initial load . I understand that this code is foreign to the portlet. thanks for your help!!
Ketan Patel, modificado 11 Anos atrás.
RE: spring hook
Junior Member Postagens: 72 Data de Entrada: 04/05/12 Postagens Recentes
Hi Pilar Hidalgo,
Can you please explain your question in details? I am not getting what you want with spring hook.
Thanks,
Ketan Patel
Can you please explain your question in details? I am not getting what you want with spring hook.
Thanks,
Ketan Patel
Hitoshi Ozawa, modificado 11 Anos atrás.
RE: spring hook
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Following page in Liferay's document may be of some help. Maybe you can just add your event to the startup event list.
http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/startup-events
http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/startup-events
Sagar A Vyas, modificado 11 Anos atrás.
RE: spring hook
Liferay Master Postagens: 679 Data de Entrada: 17/04/09 Postagens RecentesPilar Hidalgo:
Hi all,
I have a portlet that I need that it has information when system loads. I have thought a solution with spring. The doubt is if can be done to a hook by spring to do this initial load . I understand that this code is foreign to the portlet. thanks for your help!!
Hi Pillar,
You can achieve this kind of requirement by hook.
Hook is provide such facilities to override the event,you can override following events
1. Application startup event - If you want to execute certain code before server gets started.
2. Login Event (Pre/Post)
3. Service Event (Pre /Post)
I guess you need to create hook by overriding by application startup event.
Note : You will not have fully access of certain variable at that time,so be conscious for that. HOOKs
Thanks,
Sagar Vyas