View Javadoc
1   package org.codehaus.plexus;
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.classworlds.ClassWorld;
20  import org.codehaus.plexus.classworlds.realm.ClassRealm;
21  import org.codehaus.plexus.component.discovery.ComponentDiscovererManager;
22  import org.codehaus.plexus.component.factory.ComponentFactoryManager;
23  import org.codehaus.plexus.configuration.PlexusConfiguration;
24  import org.codehaus.plexus.configuration.source.ConfigurationSource;
25  import org.codehaus.plexus.logging.Logger;
26  import org.codehaus.plexus.logging.LoggerManager;
27  
28  /**
29   * @author Jason van Zyl
30   */
31  public interface MutablePlexusContainer
32      extends PlexusContainer
33  {
34      // Core Components
35  
36      ComponentRegistry getComponentRegistry();
37  
38      void setComponentRegistry( ComponentRegistry componentRegistry );
39  
40      ComponentDiscovererManager getComponentDiscovererManager();
41  
42      void setComponentDiscovererManager( ComponentDiscovererManager componentDiscovererManager );
43  
44      ComponentFactoryManager getComponentFactoryManager();
45  
46      void setComponentFactoryManager( ComponentFactoryManager componentFactoryManager );
47  
48      LoggerManager getLoggerManager();
49  
50      void setLoggerManager( LoggerManager loggerManager );
51  
52      Logger getLogger();
53      
54      void setConfigurationSource( ConfigurationSource configurationSource );
55  
56      ConfigurationSource getConfigurationSource();
57      
58      // Configuration
59  
60      void setConfiguration( PlexusConfiguration configuration );
61  
62      PlexusConfiguration getConfiguration();
63  
64      ClassRealm getComponentRealm( String realmId );
65  
66      ClassWorld getClassWorld();
67  }