cancel
Showing results for 
Search instead for 
Did you mean: 

Action Executer - init

talija83
Champ in-the-making
Champ in-the-making
What time is the init method of ActionExecuter (descendant of ActionExecuterBase) called? During startup of Alfresco only, or whenever a new session is activated? Thanks.
4 REPLIES 4

lotharmärkle
Champ in-the-making
Champ in-the-making
Hello,

the init method is called once during application lifetime. It is a spring init-method on the action-executor parent bean
 <bean id="action-executer" abstract="true" init-method="init">
        <property name="runtimeActionService">
            <ref bean="actionService" />
        </property>
        <property name="lockService">
                <ref bean="LockService"/>
        </property>
        <property name="baseNodeService">
                <ref bean="nodeService"/>
        </property>
        <property name="trackStatus" value="false" />
    </bean>

lothar

talija83
Champ in-the-making
Champ in-the-making
Thank you very much. Smiley Happy I thought that it's the way it goes, but wasn't sure of it.

Can you maybe recommend some articles/books I could read on this subject? Alfresco Developer Guide and Professional Alfresco don't seem to mention stuff like this.Thanks in advance once more.

lotharmärkle
Champ in-the-making
Champ in-the-making
You're welcome Smiley Wink

The spring framework is a building part of Alfresco, so its worth knowing it quite well. I would recommend the "Spring in action" - it is entry level - but the official Spring framework documentation is also quite well written. This will enable you to understand all the *-context.xml files of the system.

Regards,
  lothar

talija83
Champ in-the-making
Champ in-the-making
Thank you, I appreciate the advice. Smiley Happy

I'll start reading it ASAP, 'cause I feel like stuff like this, non-all-Alfresco-related, are my weak points.