com.atlassian.plugin
Enum AutowireCapablePlugin.AutowireStrategy

java.lang.Object
  extended by java.lang.Enum<AutowireCapablePlugin.AutowireStrategy>
      extended by com.atlassian.plugin.AutowireCapablePlugin.AutowireStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AutowireCapablePlugin.AutowireStrategy>
Enclosing interface:
AutowireCapablePlugin

public static enum AutowireCapablePlugin.AutowireStrategy
extends java.lang.Enum<AutowireCapablePlugin.AutowireStrategy>

The autowire strategy to use when creating and wiring a bean


Enum Constant Summary
AUTOWIRE_AUTODETECT
          Autodetects appropriate injection by first seeing if any no-arg constructors exist.
AUTOWIRE_BY_CONSTRUCTOR
          Performs construction-based injection by type
AUTOWIRE_BY_NAME
          Performs setter-based injection by name
AUTOWIRE_BY_TYPE
          Performs setter-based injection by type
AUTOWIRE_NO
           
 
Method Summary
static AutowireCapablePlugin.AutowireStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AutowireCapablePlugin.AutowireStrategy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AUTOWIRE_NO

public static final AutowireCapablePlugin.AutowireStrategy AUTOWIRE_NO

AUTOWIRE_BY_NAME

public static final AutowireCapablePlugin.AutowireStrategy AUTOWIRE_BY_NAME
Performs setter-based injection by name


AUTOWIRE_BY_TYPE

public static final AutowireCapablePlugin.AutowireStrategy AUTOWIRE_BY_TYPE
Performs setter-based injection by type


AUTOWIRE_BY_CONSTRUCTOR

public static final AutowireCapablePlugin.AutowireStrategy AUTOWIRE_BY_CONSTRUCTOR
Performs construction-based injection by type


AUTOWIRE_AUTODETECT

public static final AutowireCapablePlugin.AutowireStrategy AUTOWIRE_AUTODETECT
Autodetects appropriate injection by first seeing if any no-arg constructors exist. If not, performs constructor injection, and if so, autowires by type then name

Method Detail

values

public static AutowireCapablePlugin.AutowireStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AutowireCapablePlugin.AutowireStrategy c : AutowireCapablePlugin.AutowireStrategy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AutowireCapablePlugin.AutowireStrategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2013 Atlassian. All Rights Reserved.