Coverage Report - org.codehaus.plexus.container.initialization.ContainerInitializationContext
 
Classes in this File Line Coverage Branch Coverage Complexity
ContainerInitializationContext
83 %
10/12
N/A
1
 
 1  
 package org.codehaus.plexus.container.initialization;
 2  
 
 3  
 /*
 4  
  * Copyright 2001-2006 Codehaus Foundation.
 5  
  *
 6  
  * Licensed under the Apache License, Version 2.0 (the "License");
 7  
  * you may not use this file except in compliance with the License.
 8  
  * You may obtain a copy of the License at
 9  
  *
 10  
  *      http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing, software
 13  
  * distributed under the License is distributed on an "AS IS" BASIS,
 14  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 15  
  * See the License for the specific language governing permissions and
 16  
  * limitations under the License.
 17  
  */
 18  
 
 19  
 import org.codehaus.plexus.ContainerConfiguration;
 20  
 import org.codehaus.plexus.DefaultPlexusContainer;
 21  
 import org.codehaus.plexus.classworlds.ClassWorld;
 22  
 import org.codehaus.plexus.classworlds.realm.ClassRealm;
 23  
 import org.codehaus.plexus.configuration.PlexusConfiguration;
 24  
 
 25  
 /**
 26  
  * @author Jason van Zyl
 27  
  */
 28  
 public class ContainerInitializationContext
 29  
 {
 30  
     private DefaultPlexusContainer container;
 31  
 
 32  
     ClassWorld classWorld;
 33  
 
 34  
     ClassRealm containerRealm;
 35  
 
 36  
     PlexusConfiguration containerXmlConfiguration;
 37  
 
 38  
     ContainerConfiguration containerConfiguration;
 39  
 
 40  
     public ContainerInitializationContext( DefaultPlexusContainer container,
 41  
                                            ClassWorld classWorld,
 42  
                                            ClassRealm containerRealm,
 43  
                                            PlexusConfiguration configuration,
 44  
                                            ContainerConfiguration containerConfiguration )
 45  61
     {
 46  61
         this.container = container;
 47  
 
 48  61
         this.classWorld = classWorld;
 49  
 
 50  61
         this.containerRealm = containerRealm;
 51  
 
 52  61
         this.containerXmlConfiguration = configuration;
 53  
 
 54  61
         this.containerConfiguration = containerConfiguration;
 55  61
     }
 56  
 
 57  
     public DefaultPlexusContainer getContainer()
 58  
     {
 59  3628
         return container;
 60  
     }
 61  
 
 62  
     public ClassWorld getClassWorld()
 63  
     {
 64  0
         return classWorld;
 65  
     }
 66  
 
 67  
     public ClassRealm getContainerRealm()
 68  
     {
 69  0
         return containerRealm;
 70  
     }
 71  
 
 72  
     public PlexusConfiguration getContainerXmlConfiguration()
 73  
     {
 74  122
         return containerXmlConfiguration;
 75  
     }
 76  
 
 77  
     public ContainerConfiguration getContainerConfiguration()
 78  
     {
 79  244
         return containerConfiguration;
 80  
     }
 81  
 }