Overriding Liferay Trigger Events

I have a question regarding Liferay launch events.

The Liferay documentation gives:

Launch events

Enter a comma-separated list of class names that extend com.liferay.portal.struts.SimpleAction. These classes will execute in the specified event.

Can someone please tell me what is the difference between global.startup.eventsand application.startup.eventsand can any body tell me in which case we need to redefine them?

And if both of these trigger events expand com.liferay.portal.struts.SimpleAction? and I could not find anything inside SimpleActionexcept this:

public abstract class SimpleAction {

    public abstract void run(String[] ids) throws ActionException;

    }
}

I also wanted to know that this class does not contain anything, how does Liferay know which XML files are read and processed?

thank

+3
source share
1 answer

global.startup.events -

application.startup.events - . ( ) - . application.startup.events.

com.liferay.portal.kernel.events.SimpleAction class impliment run -methode, liferay. hook liferay-hook.xml , :

<hook>
    <portal-properties>portal-myext.properties</portal-properties>
</hook>

portal-myext.properties :

application.startup.events=com.my.actions.MyStartupAction

MyStartupAction , , hook.

+14

All Articles