com.atlassian.spring.container
Interface ContainerContext

All Known Implementing Classes:
SpringContainerContext, SpringTestContainerContext

public interface ContainerContext


Method Summary
 void autowireComponent(java.lang.Object component)
          Autowire an object in this container as much as we can.
 java.lang.Object createCompleteComponent(java.lang.Class clazz)
          Creates a new bean from the given class.
 java.lang.Object createComponent(java.lang.Class clazz)
          Create an object of the given class, and try to auto-wire by name.
 java.lang.Object getComponent(java.lang.Object key)
          Retrieves a component from the container
 boolean isSetup()
           
 void publishEvent(com.atlassian.event.Event e)
           
 void refresh()
          Refreshes the container, i.e.
 

Method Detail

getComponent

java.lang.Object getComponent(java.lang.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

java.lang.Object createComponent(java.lang.Class clazz)
Create an object of the given class, and try to auto-wire by name.


createCompleteComponent

java.lang.Object createCompleteComponent(java.lang.Class clazz)
Creates a new bean from the given class. Also executes any lifecyle process like BeanPostProcessors and autowires the bean.

Parameters:
clazz - @NotNull
Returns:
A fully constructed object of the passed class. May be a proxy of the class.

autowireComponent

void autowireComponent(java.lang.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(com.atlassian.event.Event e)


Copyright © 2006-2011 Atlassian. All Rights Reserved.