KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > hivemind > definition > impl > OrderedInterceptorDefinitionImpl


1 // Copyright 2007 The Apache Software Foundation
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14

15 /**
16  *
17  */

18 package org.apache.hivemind.definition.impl;
19
20 import org.apache.hivemind.Location;
21 import org.apache.hivemind.Orderable;
22 import org.apache.hivemind.definition.InterceptorConstructor;
23 import org.apache.hivemind.definition.ModuleDefinition;
24
25 /**
26  * Specialization of {@link InterceptorDefinitionImpl} that implements the {@link Orderable}
27  * interface.
28  */

29 public class OrderedInterceptorDefinitionImpl extends InterceptorDefinitionImpl implements Orderable
30 {
31     private String JavaDoc _precedingInterceptorIds;
32     private String JavaDoc _followingInterceptorIds;
33
34     public OrderedInterceptorDefinitionImpl(ModuleDefinition module, String JavaDoc name, Location location, InterceptorConstructor interceptorConstructor,
35             String JavaDoc precedingInterceptorIds, String JavaDoc followingInterceptorIds)
36     {
37         super(module, name, location, interceptorConstructor);
38         _precedingInterceptorIds = precedingInterceptorIds;
39         _followingInterceptorIds = followingInterceptorIds;
40     }
41
42     public String JavaDoc getFollowingNames()
43     {
44         return _followingInterceptorIds;
45     }
46
47     public String JavaDoc getPrecedingNames()
48     {
49         return _precedingInterceptorIds;
50     }
51
52 }
Popular Tags