1 package org.apache.ldap.server.interceptor; 2 3 4 import org.apache.ldap.server.RootNexus; 5 import org.apache.ldap.server.SystemPartition; 6 import org.apache.ldap.server.schema.GlobalRegistries; 7 8 import java.util.Map; 9 10 11 /*** 12 * @todo doc me 13 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 14 * @version $Rev: 159316 $, $Date: 2005-03-28 17:20:10 -0500 (Mon, 28 Mar 2005) $ 15 */ 16 public class InterceptorContext 17 { 18 19 /*** 20 * the initial context environment that fired up the backend subsystem 21 */ 22 private final Map environment; 23 24 /*** 25 * Configuration for the interceptor. 26 */ 27 private final Map config; 28 29 /*** 30 * the system partition used by the context factory 31 */ 32 private final SystemPartition systemPartition; 33 34 /*** 35 * the registries for system schema objects 36 */ 37 private final GlobalRegistries globalRegistries; 38 39 /*** 40 * the root nexus 41 */ 42 private final RootNexus rootNexus; 43 44 45 public InterceptorContext( Map environment, 46 SystemPartition systemPartition, 47 GlobalRegistries globalRegistries, 48 RootNexus rootNexus, 49 Map config ) 50 { 51 this.environment = environment; 52 53 this.systemPartition = systemPartition; 54 55 this.globalRegistries = globalRegistries; 56 57 this.rootNexus = rootNexus; 58 59 this.config = config; 60 } 61 62 63 public Map getEnvironment() 64 { 65 return environment; 66 } 67 68 69 public Map getConfig() 70 { 71 return config; 72 } 73 74 75 public GlobalRegistries getGlobalRegistries() 76 { 77 return globalRegistries; 78 } 79 80 81 public RootNexus getRootNexus() 82 { 83 return rootNexus; 84 } 85 86 87 public SystemPartition getSystemPartition() 88 { 89 return systemPartition; 90 } 91 }