CreationPattern

public enum CreationPattern extends Enum<CreationPattern>

this enum determines how the library is going to deal with the dependency instance

Entries

Link copied to clipboard
NEW

the library will creat a new instance every time the object being injected

Link copied to clipboard
SINGLETON

the library will creat a new instance for the first time the object is injected SINGLETON is also thead safe, so it guarantees that there is only one instance even in a threaded environment

Link copied to clipboard
REUSABLE

the library will creat a new instance for the first time the object is injected REUSABLE is not thread safe and in sertan scenarios it can produce multiple instances

Functions

Link copied to clipboard
public final String getName()
Link copied to clipboard
public final Integer getOrdinal()

Properties

Link copied to clipboard
private final String name
Link copied to clipboard
private final Integer ordinal