KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > applications > JahiaApplicationContextService


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.2002
16
//
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 service
30  *
31  * @author Khue Nguyen <a HREF="mailto:khue@jahia.com">khue@jahia.com</a>
32  * @version 1.0
33  */

34 public abstract class JahiaApplicationContextService extends JahiaService {
35
36
37     //--------------------------------------------------------------------------
38
/**
39      * Get an ApplicationContext for a given application id
40      *
41      * @param id , the application id
42      *
43      * @return the application context , null if not found
44      */

45     public abstract ApplicationContext getApplicationContext (int id)
46             throws JahiaException;
47
48     //--------------------------------------------------------------------------
49
/**
50      * Get an ApplicationContext for a given context
51      *
52      * @param context , the context
53      *
54      * @return the application context , null if not found
55      */

56     public abstract ApplicationContext getApplicationContext (String JavaDoc context)
57         throws JahiaException;
58
59     public abstract void removeContextFromCache(String JavaDoc context);
60
61 }
62
Popular Tags