com.atlassian.jira.mock.pico
Class MockPicoContainer
java.lang.Object
com.atlassian.jira.mock.pico.MockPicoContainer
- All Implemented Interfaces:
- org.picocontainer.Disposable, org.picocontainer.MutablePicoContainer, org.picocontainer.PicoContainer, org.picocontainer.Startable
public class MockPicoContainer
- extends Object
- implements org.picocontainer.MutablePicoContainer
Mock PICO.
- Since:
- v4.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockPicoContainer
public MockPicoContainer()
addComponent
public <T> MockPicoContainer addComponent(Class<T> componentClass,
T compInstance)
registerComponentImplementation
public org.picocontainer.ComponentAdapter registerComponentImplementation(Object componentKey,
Class componentImplementation)
throws org.picocontainer.PicoRegistrationException
- Specified by:
registerComponentImplementation
in interface org.picocontainer.MutablePicoContainer
- Throws:
org.picocontainer.PicoRegistrationException
registerComponentImplementation
public org.picocontainer.ComponentAdapter registerComponentImplementation(Object componentKey,
Class componentImplementation,
org.picocontainer.Parameter[] parameters)
throws org.picocontainer.PicoRegistrationException
- Specified by:
registerComponentImplementation
in interface org.picocontainer.MutablePicoContainer
- Throws:
org.picocontainer.PicoRegistrationException
registerComponentImplementation
public org.picocontainer.ComponentAdapter registerComponentImplementation(Class componentImplementation)
throws org.picocontainer.PicoRegistrationException
- Specified by:
registerComponentImplementation
in interface org.picocontainer.MutablePicoContainer
- Throws:
org.picocontainer.PicoRegistrationException
registerComponentInstance
public org.picocontainer.ComponentAdapter registerComponentInstance(Object componentInstance)
throws org.picocontainer.PicoRegistrationException
- Specified by:
registerComponentInstance
in interface org.picocontainer.MutablePicoContainer
- Throws:
org.picocontainer.PicoRegistrationException
registerComponentInstance
public org.picocontainer.ComponentAdapter registerComponentInstance(Object componentKey,
Object componentInstance)
throws org.picocontainer.PicoRegistrationException
- Specified by:
registerComponentInstance
in interface org.picocontainer.MutablePicoContainer
- Throws:
org.picocontainer.PicoRegistrationException
registerComponent
public org.picocontainer.ComponentAdapter registerComponent(org.picocontainer.ComponentAdapter componentAdapter)
throws org.picocontainer.PicoRegistrationException
- Specified by:
registerComponent
in interface org.picocontainer.MutablePicoContainer
- Throws:
org.picocontainer.PicoRegistrationException
unregisterComponent
public org.picocontainer.ComponentAdapter unregisterComponent(Object componentKey)
- Specified by:
unregisterComponent
in interface org.picocontainer.MutablePicoContainer
unregisterComponentByInstance
public org.picocontainer.ComponentAdapter unregisterComponentByInstance(Object componentInstance)
- Specified by:
unregisterComponentByInstance
in interface org.picocontainer.MutablePicoContainer
setParent
public void setParent(org.picocontainer.PicoContainer parent)
- Specified by:
setParent
in interface org.picocontainer.MutablePicoContainer
getComponentInstance
public Object getComponentInstance(Object componentKey)
- Specified by:
getComponentInstance
in interface org.picocontainer.PicoContainer
getComponentInstanceOfType
public Object getComponentInstanceOfType(Class componentType)
- Specified by:
getComponentInstanceOfType
in interface org.picocontainer.PicoContainer
getComponentInstances
public List getComponentInstances()
- Specified by:
getComponentInstances
in interface org.picocontainer.PicoContainer
getParent
public org.picocontainer.PicoContainer getParent()
- Specified by:
getParent
in interface org.picocontainer.PicoContainer
getComponentAdapter
public org.picocontainer.ComponentAdapter getComponentAdapter(Object componentKey)
- Specified by:
getComponentAdapter
in interface org.picocontainer.PicoContainer
getComponentAdapterOfType
public org.picocontainer.ComponentAdapter getComponentAdapterOfType(Class componentType)
- Specified by:
getComponentAdapterOfType
in interface org.picocontainer.PicoContainer
getComponentAdapters
public Collection getComponentAdapters()
- Specified by:
getComponentAdapters
in interface org.picocontainer.PicoContainer
getComponentAdaptersOfType
public List getComponentAdaptersOfType(Class componentType)
- Specified by:
getComponentAdaptersOfType
in interface org.picocontainer.PicoContainer
verify
public void verify()
throws org.picocontainer.PicoVerificationException
- Specified by:
verify
in interface org.picocontainer.PicoContainer
- Throws:
org.picocontainer.PicoVerificationException
addOrderedComponentAdapter
public void addOrderedComponentAdapter(org.picocontainer.ComponentAdapter componentAdapter)
- Specified by:
addOrderedComponentAdapter
in interface org.picocontainer.PicoContainer
dispose
public void dispose()
- Specified by:
dispose
in interface org.picocontainer.Disposable
start
public void start()
- Specified by:
start
in interface org.picocontainer.Startable
stop
public void stop()
- Specified by:
stop
in interface org.picocontainer.Startable
Copyright © 2002-2012 Atlassian. All Rights Reserved.