1 //2 // ____.3 // __/\ ______| |__/\. _______4 // __ .____| | \ | +----+ \5 // _______| /--| | | - \ _ | : - \_________6 // \\______: :---| : : | : | \________>7 // |__\---\_____________:______: :____|____:_____\8 // /_____|9 //10 // . . . i n j a h i a w e t r u s t . . .11 //12 //13 //14 //15 // NK 18.06.200216 //17 //18 19 20 package org.jahia.services.applications;21 22 23 import org.jahia.data.applications.ApplicationContext;24 import org.jahia.exceptions.JahiaException;25 import org.jahia.services.JahiaService;26 27 28 /**29 * Application context manager service30 *31 * @author Khue Nguyen <a HREF="mailto:khue@jahia.com">khue@jahia.com</a>32 * @version 1.033 */34 public abstract class JahiaApplicationContextService extends JahiaService {35 36 37 //--------------------------------------------------------------------------38 /**39 * Get an ApplicationContext for a given application id40 *41 * @param id , the application id42 *43 * @return the application context , null if not found44 */45 public abstract ApplicationContext getApplicationContext (int id)46 throws JahiaException;47 48 //--------------------------------------------------------------------------49 /**50 * Get an ApplicationContext for a given context51 *52 * @param context , the context53 *54 * @return the application context , null if not found55 */56 public abstract ApplicationContext getApplicationContext (String context)57 throws JahiaException;58 59 public abstract void removeContextFromCache(String context);60 61 }62