KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > metadata > spi > scope > CommonLevels


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2006, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.metadata.spi.scope;
23
24 /**
25  * CommonLevels.
26  *
27  * @author <a HREF="adrian@jboss.com">Adrian Brock</a>
28  * @version $Revision: 46146 $
29  */

30 public interface CommonLevels
31 {
32    /** The domain level name */
33    String JavaDoc DOMAIN_NAME = "DOMAIN";
34
35    /** The domain level */
36    ScopeLevel DOMAIN = new ScopeLevel(100, DOMAIN_NAME);
37
38    /** The cluster level name */
39    String JavaDoc CLUSTER_NAME = "CLUSTER";
40
41    /** The cluster level */
42    ScopeLevel CLUSTER = new ScopeLevel(DOMAIN.getLevel() + 100, CLUSTER_NAME);
43
44    /** The machine level name */
45    String JavaDoc MACHINE_NAME = "MACHINE";
46
47    /** The machine level */
48    ScopeLevel MACHINE = new ScopeLevel(CLUSTER.getLevel() + 100, MACHINE_NAME);
49
50    /** The node level name */
51    String JavaDoc NODE_NAME = "NODE";
52
53    /** The node level */
54    ScopeLevel NODE = new ScopeLevel(MACHINE.getLevel() + 100, NODE_NAME);
55
56    /** The jvm level name */
57    String JavaDoc JVM_NAME = "JVM";
58
59    /** The jvm level */
60    ScopeLevel JVM = new ScopeLevel(NODE.getLevel() + 100, JVM_NAME);
61
62    /** The server level name */
63    String JavaDoc SERVER_NAME = "SERVER";
64
65    /** The server level */
66    ScopeLevel SERVER = new ScopeLevel(JVM.getLevel() + 100, SERVER_NAME);
67
68    /** The subsystem level name */
69    String JavaDoc SUBSYSTEM_NAME = "SUBSYSTEM";
70
71    /** The subsystem level */
72    ScopeLevel SUBSYSTEM = new ScopeLevel(SERVER.getLevel() + 100, SUBSYSTEM_NAME);
73
74    /** The application level name */
75    String JavaDoc APPLICATION_NAME = "APPLICATION";
76
77    /** The application level */
78    ScopeLevel APPLICATION = new ScopeLevel(SUBSYSTEM.getLevel() + 100, APPLICATION_NAME);
79
80    /** The deployment level name */
81    String JavaDoc DEPLOYMENT_NAME = "DEPLOYMENT";
82
83    /** The deployment level */
84    ScopeLevel DEPLOYMENT = new ScopeLevel(APPLICATION.getLevel() + 100, DEPLOYMENT_NAME);
85
86    /** The class level name */
87    String JavaDoc CLASS_NAME = "CLASS";
88
89    /** The class level */
90    ScopeLevel CLASS = new ScopeLevel(DEPLOYMENT.getLevel() + 100, CLASS_NAME);
91
92    /** The instance level name */
93    String JavaDoc INSTANCE_NAME = "INSTANCE";
94
95    /** The instance level */
96    ScopeLevel INSTANCE = new ScopeLevel(CLASS.getLevel() + 100, INSTANCE_NAME);
97
98    /** The join point level name */
99    String JavaDoc JOINPOINT_NAME = "JOINPOINT";
100
101    /** The join point level */
102    ScopeLevel JOINPOINT = new ScopeLevel(INSTANCE.getLevel() + 100, JOINPOINT_NAME);
103
104    /** The join point override level name */
105    String JavaDoc JOINPOINT_OVERRIDE_NAME = "JOINPOINT_OVERRIDE";
106
107    /** The join point override level */
108    ScopeLevel JOINPOINT_OVERRIDE = new ScopeLevel(JOINPOINT.getLevel() + 100, JOINPOINT_OVERRIDE_NAME);
109
110    /** The thread level name */
111    String JavaDoc THREAD_NAME = "THREAD";
112
113    /** The thread level */
114    ScopeLevel THREAD = new ScopeLevel(JOINPOINT_OVERRIDE.getLevel() + 100, THREAD_NAME);
115
116    /** The unit of work level name */
117    String JavaDoc WORK_NAME = "WORK";
118
119    /** The unit of work level */
120    ScopeLevel WORK = new ScopeLevel(THREAD.getLevel() + 100, WORK_NAME);
121
122    /** The request level name */
123    String JavaDoc REQUEST_NAME = "REQUEST";
124
125    /** The request level */
126    ScopeLevel REQUEST = new ScopeLevel(WORK.getLevel() + 100, REQUEST_NAME);
127 }
128
Popular Tags