Package tigase.kernel.beans
Annotation Interface Inject
This annotation marks field in class that Kernel should inject dependency here.
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionName of bean to be injected (optional).boolean
Specify if injection of dependency is required or not.Class
<?> Type of bean to be injected (opiotnal).
-
Element Details
-
bean
String beanName of bean to be injected (optional).- Returns:
- name of bean.
- Default:
""
-
nullAllowed
boolean nullAllowedSpecify if injection of dependency is required or not.- Returns:
true
ifnull
value is allowed to inject.
- Default:
false
-
type
Class<?> typeType of bean to be injected (opiotnal).- Returns:
- type of bean.
- Default:
tigase.kernel.beans.Inject.EMPTY.class
-