public interface

SpringContainerAccessor

implements ContainerAccessor
com.atlassian.plugin.osgi.spring.SpringContainerAccessor
Known Indirect Subclasses

Class Overview

Allows to access the spring container and access springs beans.

Summary

Public Methods
@Deprecated void autowireBean(Object instance, AutowireCapablePlugin.AutowireStrategy strategy)
This method is deprecated. Since 2.5.0, use the createBean method instead.
Object getBean(String id)
Retrieves a spring bean from the spring bean factory.
[Expand]
Inherited Methods
From interface com.atlassian.plugin.module.ContainerAccessor

Public Methods

@Deprecated public void autowireBean (Object instance, AutowireCapablePlugin.AutowireStrategy strategy)

This method is 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

public Object getBean (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