View Javadoc

1   package net.trajano.twiff.internal;
2   
3   /***
4    * This utility class provides string constants used by the framework
5    * internally.
6    * 
7    * @author Archimedes Trajano
8    */
9   public class TwiffInternal {
10      /***
11       * All entries are prefixed with this string. With the exception of
12       * {@link #TWIFF_DEFAULTS}.
13       */
14      private static final String _PREFIX = "twiff.internal."; //$NON-NLS-1$
15  
16      /***
17       * Attribute key to get the application level container. This should be
18       * moved to an internal package class.
19       */
20      public static final String APP_CONTAINER_KEY = _PREFIX + "app.container"; //$NON-NLS-1$
21  
22      /***
23       * Attribute key to get the session level container. This should be moved to
24       * an internal package class.
25       */
26      public static final String HTTP_SESSION_CONTAINER_KEY = _PREFIX + "session.container"; //$NON-NLS-1$
27  
28      /***
29       * Attribute key to get the request level container. This should be moved to
30       * an internal package class.
31       */
32      public static final String REQUEST_CONTAINER_KEY = _PREFIX + "request.container"; //$NON-NLS-1$
33  
34      /***
35       * Attribute key to get the Hibernate {@link org.hibernate.SessionFactory}
36       * object from the servlet context.
37       */
38      public static final String SESSION_FACTORY_KEY = _PREFIX + "session.factory"; //$NON-NLS-1$
39  
40      /***
41       * Resource bundle lookup key to get the defaults used in the framework. You
42       * may look at the properties file to see the defaults, the name portion is
43       * equivalent to the value of the keys listed here. If there is no default
44       * value it will not be listed in the properties file specified.
45       */
46      public static final String TWIFF_DEFAULTS = "net.trajano.twiff.TwiffDefaults"; //$NON-NLS-1$
47  
48      /***
49       * Private constuctor to prevent instantiation of this utility class.
50       */
51      private TwiffInternal() {
52      }
53  }