001 // Copyright 2007 The Apache Software Foundation 002 // 003 // Licensed under the Apache License, Version 2.0 (the "License"); 004 // you may not use this file except in compliance with the License. 005 // You may obtain a copy of the License at 006 // 007 // http://www.apache.org/licenses/LICENSE-2.0 008 // 009 // Unless required by applicable law or agreed to in writing, software 010 // distributed under the License is distributed on an "AS IS" BASIS, 011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 012 // See the License for the specific language governing permissions and 013 // limitations under the License. 014 015 /** 016 * 017 */ 018 package org.apache.hivemind.definition.impl; 019 020 import org.apache.hivemind.Location; 021 import org.apache.hivemind.Orderable; 022 import org.apache.hivemind.definition.InterceptorConstructor; 023 import org.apache.hivemind.definition.ModuleDefinition; 024 025 /** 026 * Specialization of {@link InterceptorDefinitionImpl} that implements the {@link Orderable} 027 * interface. 028 */ 029 public class OrderedInterceptorDefinitionImpl extends InterceptorDefinitionImpl implements Orderable 030 { 031 private String _precedingInterceptorIds; 032 private String _followingInterceptorIds; 033 034 public OrderedInterceptorDefinitionImpl(ModuleDefinition module, String name, Location location, InterceptorConstructor interceptorConstructor, 035 String precedingInterceptorIds, String followingInterceptorIds) 036 { 037 super(module, name, location, interceptorConstructor); 038 _precedingInterceptorIds = precedingInterceptorIds; 039 _followingInterceptorIds = followingInterceptorIds; 040 } 041 042 public String getFollowingNames() 043 { 044 return _followingInterceptorIds; 045 } 046 047 public String getPrecedingNames() 048 { 049 return _precedingInterceptorIds; 050 } 051 052 }