com.atlassian.spring.container
Class ContainerManager

java.lang.Object
  extended by com.atlassian.spring.container.ContainerManager

public class ContainerManager
extends java.lang.Object


Method Summary
static void autowireComponent(java.lang.Object component)
          Utility method to autowire a bean
static java.lang.Object getComponent(java.lang.String key)
          Utility method to get a bean from the current container
static
<T> T
getComponent(java.lang.String key, java.lang.Class<T> aClass)
          Utility method to get a bean from the current container
 ContainerContext getContainerContext()
           
static ContainerManager getInstance()
           
static boolean isContainerSetup()
           
static void resetInstance()
           
 void setContainerContext(ContainerContext containerContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ContainerManager getInstance()

getComponent

public static java.lang.Object getComponent(java.lang.String key)
                                     throws ComponentNotFoundException
Utility method to get a bean from the current container

Throws:
ComponentNotFoundException - if the specified component cannot be found in the container

getComponent

public static <T> T getComponent(java.lang.String key,
                                 java.lang.Class<T> aClass)
                      throws ComponentNotFoundException,
                             ComponentTypeMismatchException
Utility method to get a bean from the current container

Throws:
ComponentNotFoundException - if the specified component cannot be found in the container
ComponentTypeMismatchException - if the specified component is not assignable to the type specified

autowireComponent

public static void autowireComponent(java.lang.Object component)
Utility method to autowire a bean

Parameters:
component -

getContainerContext

public ContainerContext getContainerContext()
Returns:
Returns the containerContext.

setContainerContext

public void setContainerContext(ContainerContext containerContext)
Parameters:
containerContext - The containerContext to set.

resetInstance

public static void resetInstance()

isContainerSetup

public static boolean isContainerSetup()


Copyright © 2006-2011 Atlassian. All Rights Reserved.