com.atlassian.spring.container
Interface ContainerContext

All Known Implementing Classes:
SpringContainerContext, SpringTestContainerContext

public interface ContainerContext


Method Summary
 void autowireComponent(Object component)
          Autowire an object in this container as much as we can.
 Object createComponent(Class clazz)
          Create an object of the given class, and try to auto-wire it as much as we can.
 Object getComponent(Object key)
          Retrieves a component from the container
 boolean isSetup()
           
 void publishEvent(Event e)
           
 void refresh()
          Refreshes the container, i.e.
 

Method Detail

getComponent

Object getComponent(Object key)
                    throws ComponentNotFoundException
Retrieves a component from the container

Parameters:
key - the key which matches to the component
Returns:
the component or null if the component was not found
Throws:
ComponentNotFoundException - if the key passed in is null or the component is not found or if there is more than one satisfiable component for the given key, such as the key is a Class and multiple instances of the class exist in the container

createComponent

Object createComponent(Class clazz)
Create an object of the given class, and try to auto-wire it as much as we can.


autowireComponent

void autowireComponent(Object component)
Autowire an object in this container as much as we can.


refresh

void refresh()
Refreshes the container, i.e. reloads it's components from it's config file


isSetup

boolean isSetup()

publishEvent

void publishEvent(Event e)


Atlassian Spring is developed by Atlassian Software Systems.