com.atlassian.plugin
Interface AutowireCapablePlugin

All Known Implementing Classes:
AbstractDelegatingPlugin

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
          The autowire strategy to use when creating and wiring a bean
 
Method Summary
<T> T
autowire(java.lang.Class<T> clazz)
          Creates and autowires a class using the default strategy.
<T> T
autowire(java.lang.Class<T> clazz, AutowireCapablePlugin.AutowireStrategy autowireStrategy)
          Creates and autowires a class with a specific autowire strategy
 void autowire(java.lang.Object instance)
          Autowires an existing object using the default strategy.
 void autowire(java.lang.Object instance, AutowireCapablePlugin.AutowireStrategy autowireStrategy)
          Autowires an existing object with a specific autowire strategy
 

Method Detail

autowire

<T> T autowire(java.lang.Class<T> clazz)
Creates and autowires a class using the default strategy.

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

autowire

<T> T autowire(java.lang.Class<T> clazz,
               AutowireCapablePlugin.AutowireStrategy autowireStrategy)
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

void autowire(java.lang.Object instance)
Autowires an existing object using the default strategy.

Parameters:
instance - The object to inject

autowire

void autowire(java.lang.Object instance,
              AutowireCapablePlugin.AutowireStrategy autowireStrategy)
Autowires an existing object with a specific autowire strategy

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


Copyright © 2009 Atlassian. All Rights Reserved.