org.apache.maven.plugins.enforcer
Class MockPlexusContainer
java.lang.Object
org.apache.maven.plugins.enforcer.MockPlexusContainer
- All Implemented Interfaces:
- org.codehaus.plexus.PlexusContainer
public class MockPlexusContainer
- extends Object
- implements org.codehaus.plexus.PlexusContainer
The Class MockPlexusContainer.
- Author:
- Brian Fox
| Fields inherited from interface org.codehaus.plexus.PlexusContainer |
ROLE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockPlexusContainer
public MockPlexusContainer()
lookup
public Object lookup(String theComponentKey)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
- Specified by:
lookup in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
addComponentDescriptor
public void addComponentDescriptor(org.codehaus.plexus.component.repository.ComponentDescriptor theComponentDescriptor)
throws org.codehaus.plexus.component.repository.exception.ComponentRepositoryException
- Specified by:
addComponentDescriptor in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentRepositoryException
addContextValue
public void addContextValue(Object theKey,
Object theValue)
- Specified by:
addContextValue in interface org.codehaus.plexus.PlexusContainer
addJarRepository
public void addJarRepository(File theRepository)
- Specified by:
addJarRepository in interface org.codehaus.plexus.PlexusContainer
addJarResource
public void addJarResource(File theResource)
throws org.codehaus.plexus.PlexusContainerException
- Specified by:
addJarResource in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.PlexusContainerException
composeComponent
public void composeComponent(Object theComponent,
org.codehaus.plexus.component.repository.ComponentDescriptor theComponentDescriptor)
throws org.codehaus.plexus.component.composition.CompositionException,
org.codehaus.plexus.component.composition.UndefinedComponentComposerException
- Specified by:
composeComponent in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.component.composition.CompositionException
org.codehaus.plexus.component.composition.UndefinedComponentComposerException
createChildContainer
public org.codehaus.plexus.PlexusContainer createChildContainer(String theName,
List theClasspathJars,
Map theContext)
throws org.codehaus.plexus.PlexusContainerException
- Specified by:
createChildContainer in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.PlexusContainerException
createChildContainer
public org.codehaus.plexus.PlexusContainer createChildContainer(String theName,
List theClasspathJars,
Map theContext,
List theDiscoveryListeners)
throws org.codehaus.plexus.PlexusContainerException
- Specified by:
createChildContainer in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.PlexusContainerException
createComponentInstance
public Object createComponentInstance(org.codehaus.plexus.component.repository.ComponentDescriptor theComponentDescriptor)
throws org.codehaus.plexus.component.factory.ComponentInstantiationException,
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Specified by:
createComponentInstance in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.component.factory.ComponentInstantiationException
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
dispose
public void dispose()
- Specified by:
dispose in interface org.codehaus.plexus.PlexusContainer
getChildContainer
public org.codehaus.plexus.PlexusContainer getChildContainer(String theName)
- Specified by:
getChildContainer in interface org.codehaus.plexus.PlexusContainer
getComponentDescriptor
public org.codehaus.plexus.component.repository.ComponentDescriptor getComponentDescriptor(String theComponentKey)
- Specified by:
getComponentDescriptor in interface org.codehaus.plexus.PlexusContainer
getComponentDescriptorList
public List getComponentDescriptorList(String theRole)
- Specified by:
getComponentDescriptorList in interface org.codehaus.plexus.PlexusContainer
getComponentDescriptorMap
public Map getComponentDescriptorMap(String theRole)
- Specified by:
getComponentDescriptorMap in interface org.codehaus.plexus.PlexusContainer
getComponentRealm
public org.codehaus.classworlds.ClassRealm getComponentRealm(String theComponentKey)
- Specified by:
getComponentRealm in interface org.codehaus.plexus.PlexusContainer
getContainerRealm
public org.codehaus.classworlds.ClassRealm getContainerRealm()
- Specified by:
getContainerRealm in interface org.codehaus.plexus.PlexusContainer
getContext
public org.codehaus.plexus.context.Context getContext()
- Specified by:
getContext in interface org.codehaus.plexus.PlexusContainer
getCreationDate
public Date getCreationDate()
- Specified by:
getCreationDate in interface org.codehaus.plexus.PlexusContainer
getLogger
public org.codehaus.plexus.logging.Logger getLogger()
- Specified by:
getLogger in interface org.codehaus.plexus.PlexusContainer
getLoggerManager
public org.codehaus.plexus.logging.LoggerManager getLoggerManager()
- Specified by:
getLoggerManager in interface org.codehaus.plexus.PlexusContainer
hasChildContainer
public boolean hasChildContainer(String theName)
- Specified by:
hasChildContainer in interface org.codehaus.plexus.PlexusContainer
hasComponent
public boolean hasComponent(String theComponentKey)
- Specified by:
hasComponent in interface org.codehaus.plexus.PlexusContainer
hasComponent
public boolean hasComponent(String theRole,
String theRoleHint)
- Specified by:
hasComponent in interface org.codehaus.plexus.PlexusContainer
initialize
public void initialize()
throws org.codehaus.plexus.PlexusContainerException
- Specified by:
initialize in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.PlexusContainerException
isInitialized
public boolean isInitialized()
- Specified by:
isInitialized in interface org.codehaus.plexus.PlexusContainer
isStarted
public boolean isStarted()
- Specified by:
isStarted in interface org.codehaus.plexus.PlexusContainer
lookup
public Object lookup(String theRole,
String theRoleHint)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
- Specified by:
lookup in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
lookupList
public List lookupList(String theRole)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
- Specified by:
lookupList in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
lookupMap
public Map lookupMap(String theRole)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
- Specified by:
lookupMap in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
registerComponentDiscoveryListener
public void registerComponentDiscoveryListener(org.codehaus.plexus.component.discovery.ComponentDiscoveryListener theListener)
- Specified by:
registerComponentDiscoveryListener in interface org.codehaus.plexus.PlexusContainer
release
public void release(Object theComponent)
throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Specified by:
release in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
releaseAll
public void releaseAll(Map theComponents)
throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Specified by:
releaseAll in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
releaseAll
public void releaseAll(List theComponents)
throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Specified by:
releaseAll in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
removeChildContainer
public void removeChildContainer(String theName)
- Specified by:
removeChildContainer in interface org.codehaus.plexus.PlexusContainer
removeComponentDiscoveryListener
public void removeComponentDiscoveryListener(org.codehaus.plexus.component.discovery.ComponentDiscoveryListener theListener)
- Specified by:
removeComponentDiscoveryListener in interface org.codehaus.plexus.PlexusContainer
resume
public void resume(Object theComponent)
throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Specified by:
resume in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
setConfigurationResource
public void setConfigurationResource(Reader theConfiguration)
throws org.codehaus.plexus.configuration.PlexusConfigurationResourceException
- Specified by:
setConfigurationResource in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.configuration.PlexusConfigurationResourceException
setLoggerManager
public void setLoggerManager(org.codehaus.plexus.logging.LoggerManager theLoggerManager)
- Specified by:
setLoggerManager in interface org.codehaus.plexus.PlexusContainer
setParentPlexusContainer
public void setParentPlexusContainer(org.codehaus.plexus.PlexusContainer theParentContainer)
- Specified by:
setParentPlexusContainer in interface org.codehaus.plexus.PlexusContainer
start
public void start()
throws org.codehaus.plexus.PlexusContainerException
- Specified by:
start in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.PlexusContainerException
suspend
public void suspend(Object theComponent)
throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
- Specified by:
suspend in interface org.codehaus.plexus.PlexusContainer
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.