KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > resource > include > IncludeConfig


1 package org.sapia.resource.include;
2
3 import org.sapia.resource.ResourceCapable;
4
5 /**
6  * An instance of this class encapsulates application specific objects necessary to perform resource-inclusion
7  * operations.
8  *
9  * @see org.sapia.resource.include.IncludeState#createConfig(String, IncludeContextFactory, ResourceCapable)
10  *
11  * @author yduchesne
12  *
13  */

14 public class IncludeConfig {
15
16   private String JavaDoc appKey;
17   private IncludeContextFactory factory;
18   private ResourceCapable resources;
19   
20   IncludeConfig(String JavaDoc appKey,
21       IncludeContextFactory fac, ResourceCapable resources){
22     this.appKey = appKey;
23     this.factory = fac;
24     this.resources = resources;
25   }
26   
27   /**
28    * @return this instance's application key.
29    */

30   public String JavaDoc getAppKey() {
31     return appKey;
32   }
33   
34   /**
35    * @return this instance's <code>IncludeContextFactory</code>.
36    */

37   public IncludeContextFactory getFactory() {
38     return factory;
39   }
40   
41   /**
42    * @return this instance's <code>ResourceCapable</code> object.
43    */

44   public ResourceCapable getResources() {
45     return resources;
46   }
47   
48 }
49
Popular Tags