com.atlassian.plugin
Interface AutowireCapablePlugin

All Known Implementing Classes:
AbstractDelegatingPlugin, OsgiPlugin

Deprecated. Since 2.5.0, use ContainerManagedPlugin instead. getContainerAccessor provides access to the container.

@Deprecated
public interface AutowireCapablePlugin

Defines a plugin that is capable of creating and autowiring beans. The name and autowire types copied from Spring's AutowireCapableBeanFactory.


Nested Class Summary
static class AutowireCapablePlugin.AutowireStrategy
          Deprecated. The autowire strategy to use when creating and wiring a bean
 
Method Summary
<T> T
autowire(java.lang.Class<T> clazz)
          Deprecated. Since 2.5.0, use com.atlassian.plugin.module.ContainerManagedPlugin.getContainerAccessor() instead.
<T> T
autowire(java.lang.Class<T> clazz, AutowireCapablePlugin.AutowireStrategy autowireStrategy)
          Deprecated. Since 2.5.0, use com.atlassian.plugin.module.ContainerManagedPlugin.getContainerAccessor() instead.
 void autowire(java.lang.Object instance)
          Deprecated. Since 2.5.0, use com.atlassian.plugin.module.ContainerManagedPlugin.getContainerAccessor() instead.
 void autowire(java.lang.Object instance, AutowireCapablePlugin.AutowireStrategy autowireStrategy)
          Deprecated. Since 2.5.0, use com.atlassian.plugin.module.ContainerManagedPlugin.getContainerAccessor() instead.
 

Method Detail

autowire

@Deprecated
<T> T autowire(java.lang.Class<T> clazz)
Deprecated. Since 2.5.0, use com.atlassian.plugin.module.ContainerManagedPlugin.getContainerAccessor() instead.

Creates and autowires a class using the default strategy.

Parameters:
clazz - The class to create
Returns:
The created and wired bean

autowire

@Deprecated
<T> T autowire(java.lang.Class<T> clazz,
                          AutowireCapablePlugin.AutowireStrategy autowireStrategy)
Deprecated. Since 2.5.0, use com.atlassian.plugin.module.ContainerManagedPlugin.getContainerAccessor() instead.

Creates and autowires a class with a specific autowire strategy

Parameters:
clazz - The class to create
autowireStrategy - The autowire strategy
Returns:
The created and wired bean

autowire

@Deprecated
void autowire(java.lang.Object instance)
Deprecated. Since 2.5.0, use com.atlassian.plugin.module.ContainerManagedPlugin.getContainerAccessor() instead.

Autowires an existing object using the default strategy.

Parameters:
instance - The object to inject

autowire

@Deprecated
void autowire(java.lang.Object instance,
                         AutowireCapablePlugin.AutowireStrategy autowireStrategy)
Deprecated. Since 2.5.0, use com.atlassian.plugin.module.ContainerManagedPlugin.getContainerAccessor() instead.

Autowires an existing object with a specific autowire strategy

Parameters:
instance - The object to autowire
autowireStrategy - The autowire strategy, must not be constructor


Copyright © 2010 Atlassian. All Rights Reserved.