/// <summary> Call the method IncludeEvent()
        ///
        /// </summary>
        /// <param name="handler">call the appropriate method on this handler
        /// </param>
        public virtual void Execute(IEventHandler handler)
        {
            IIncludeEventHandler eh = (IIncludeEventHandler)handler;

            if (eh is IContextAware)
            {
                ((IContextAware)eh).Context = context;
            }

            executed            = true;
            includeResourcePath = ((IIncludeEventHandler)handler).IncludeEvent(includeResourcePath, currentResourcePath, directiveName);
        }
Beispiel #2
0
 /// <summary>  Add an include event handler to the Cartridge.
 ///
 /// </summary>
 /// <param name="ev">IIncludeEventHandler
 /// </param>
 /// <since> 1.5
 /// </since>
 public virtual void AddIncludeEventHandler(IIncludeEventHandler ev)
 {
     includeHandlers.Add(ev);
 }