com.atlassian.plugin.osgi.spring
Interface SpringContainerAccessor

All Superinterfaces:
ContainerAccessor
All Known Implementing Classes:
DefaultSpringContainerAccessor

public interface SpringContainerAccessor
extends ContainerAccessor

Allows to access the spring container and access springs beans.

Since:
2.5.0

Method Summary
 void autowireBean(java.lang.Object instance, AutowireCapablePlugin.AutowireStrategy strategy)
          Deprecated. Since 2.5.0, use the createBean method instead.
 java.lang.Object getBean(java.lang.String id)
          Retrieves a spring bean from the spring bean factory.
 
Methods inherited from interface com.atlassian.plugin.module.ContainerAccessor
createBean, getBeansOfType
 

Method Detail

getBean

java.lang.Object getBean(java.lang.String id)
Retrieves a spring bean from the spring bean factory.

Parameters:
id - the id of the spring bean, cannot be null
Returns:
the spring bean object

autowireBean

@Deprecated
void autowireBean(java.lang.Object instance,
                             AutowireCapablePlugin.AutowireStrategy strategy)
Deprecated. Since 2.5.0, use the createBean method instead.

'Autowires' a given object - injects all dependencies defined in the constructor.

Parameters:
instance - the object instance to autowire
strategy - the autowire strategy


Copyright © 2010 Atlassian. All Rights Reserved.