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 extends PlexusContainer {
32      // Core Components
33  
34      ComponentRegistry getComponentRegistry();
35  
36      void setComponentRegistry(ComponentRegistry componentRegistry);
37  
38      ComponentDiscovererManager getComponentDiscovererManager();
39  
40      void setComponentDiscovererManager(ComponentDiscovererManager componentDiscovererManager);
41  
42      ComponentFactoryManager getComponentFactoryManager();
43  
44      void setComponentFactoryManager(ComponentFactoryManager componentFactoryManager);
45  
46      LoggerManager getLoggerManager();
47  
48      void setLoggerManager(LoggerManager loggerManager);
49  
50      Logger getLogger();
51  
52      void setConfigurationSource(ConfigurationSource configurationSource);
53  
54      ConfigurationSource getConfigurationSource();
55  
56      // Configuration
57  
58      void setConfiguration(PlexusConfiguration configuration);
59  
60      PlexusConfiguration getConfiguration();
61  
62      ClassRealm getComponentRealm(String realmId);
63  
64      ClassWorld getClassWorld();
65  }