jodd.petite.WiringMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jodd-petite Show documentation
Show all versions of jodd-petite Show documentation
Jodd Petite is slick and lightweight DI container that uses annotations and supports sufficient most of features offered by other containers.
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved.
package jodd.petite;
/**
* Different wiring modes.
*/
public enum WiringMode {
DEFAULT(-1), // wiring mode is set by container
NONE(0), // no wiring at all
STRICT(1), // throws an exception if injection failed
OPTIONAL(2), // ignores unsuccessful injections
AUTOWIRE(3); // auto-wire
private final int value;
WiringMode(int value) {
this.value = value;
}
public int value() {
return value;
}
@Override
public String toString() {
return name();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy