org.rythmengine.internal
Class RythmEvents<RETURN,PARAM>

java.lang.Object
  extended by org.rythmengine.internal.RythmEvents<RETURN,PARAM>
All Implemented Interfaces:
IEvent<RETURN,PARAM>

public class RythmEvents<RETURN,PARAM>
extends Object
implements IEvent<RETURN,PARAM>

Built in events


Field Summary
static IEvent<Void,String> COMPILED
          Immediately after template compilation finished and before get cached on disk
static IEvent<Void,TemplateBase> ENTER_INVOKE_TEMPLATE
          Triggered immediately when RythmEngine.invokeTemplate() method get called
static IEvent<Void,TemplateBase> EXIT_INVOKE_TEMPLATE
          Triggered after RythmEngine.invokeTemplate() method get called
static IEvent<Void,CodeBuilder> ON_BUILD_JAVA_SOURCE
          Before start building java source code.
static IEvent<Void,CodeBuilder> ON_CLOSING_JAVA_CLASS
          Before close generated java source code class.
static IEvent<Void,String> ON_COMPILE
          Right before template compilation started
static IEvent<String,CodeBuilder> ON_PARSE
          Right before template parsing started
static IEvent<Void,ITemplate> ON_RENDER
          Before template render start.
static IEvent<Boolean,F.T2<TemplateBase,Exception>> ON_RENDER_EXCEPTION
          Render execution exception captured
static IEvent<Void,F.T2<TemplateBase,ITemplate>> ON_TAG_INVOCATION
          Before tag invocation
static IEvent<Void,CodeBuilder> PARSED
          Immediately after template get parsed and before final template java source code generated
static IEvent<Void,ITemplate> RENDERED
          After template rendered.
static IEvent<Void,F.T2<TemplateBase,ITemplate>> TAG_INVOKED
          Before tag invocation
 
Method Summary
 boolean isSafe()
           
 RETURN trigger(IEventDispatcher eventBus, PARAM eventParam)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ON_PARSE

public static final IEvent<String,CodeBuilder> ON_PARSE
Right before template parsing started


ON_BUILD_JAVA_SOURCE

public static final IEvent<Void,CodeBuilder> ON_BUILD_JAVA_SOURCE
Before start building java source code. A good place to inject implicit imports and render args


ON_CLOSING_JAVA_CLASS

public static final IEvent<Void,CodeBuilder> ON_CLOSING_JAVA_CLASS
Before close generated java source code class. A good place to inject implicit java source


PARSED

public static final IEvent<Void,CodeBuilder> PARSED
Immediately after template get parsed and before final template java source code generated


ON_COMPILE

public static final IEvent<Void,String> ON_COMPILE
Right before template compilation started


COMPILED

public static final IEvent<Void,String> COMPILED
Immediately after template compilation finished and before get cached on disk


ON_RENDER

public static final IEvent<Void,ITemplate> ON_RENDER
Before template render start. A good place to set implicit render args


RENDERED

public static final IEvent<Void,ITemplate> RENDERED
After template rendered.


ON_TAG_INVOCATION

public static final IEvent<Void,F.T2<TemplateBase,ITemplate>> ON_TAG_INVOCATION
Before tag invocation


ENTER_INVOKE_TEMPLATE

public static final IEvent<Void,TemplateBase> ENTER_INVOKE_TEMPLATE
Triggered immediately when RythmEngine.invokeTemplate() method get called


EXIT_INVOKE_TEMPLATE

public static final IEvent<Void,TemplateBase> EXIT_INVOKE_TEMPLATE
Triggered after RythmEngine.invokeTemplate() method get called


TAG_INVOKED

public static final IEvent<Void,F.T2<TemplateBase,ITemplate>> TAG_INVOKED
Before tag invocation


ON_RENDER_EXCEPTION

public static final IEvent<Boolean,F.T2<TemplateBase,Exception>> ON_RENDER_EXCEPTION
Render execution exception captured

Method Detail

isSafe

public boolean isSafe()
Specified by:
isSafe in interface IEvent<RETURN,PARAM>

trigger

public RETURN trigger(IEventDispatcher eventBus,
                      PARAM eventParam)
Specified by:
trigger in interface IEvent<RETURN,PARAM>


Copyright © 2013. All Rights Reserved.