-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmetadata.xml
35 lines (35 loc) · 2.08 KB
/
metadata.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2011 the original author or authors
~
~ Permission is hereby granted to use, modify, and distribute this file
~ in accordance with the terms of the license agreement accompanying it.
-->
<annotations version="1.0">
<metadata name="Inject" description="Dependency injection">
<context name="variable"/>
<context name="setter"/>
<context name="method"/>
<context name="class"/>
<attribute name="name" type="String" required="false"
description="Name for a named injection, can be used multiple times for naming individual method arguments"/>
<attribute name="optional" type="Boolean" required="false"
description="Flag indicating that the annotated injection is optional. If not set, a missing dependency will cause an exception"/>
</metadata>
<metadata name="PostConstruct"
description="Swiftsuspenders flag to automatically call this method after object construction (after injected properties are available)">
<context name="method"/>
<attribute name="order" type="int" required="false"
description="Flag indicating at which point in the total order of PostConstruct-annotated methods this method should be called. Order is independent of inheritance"/>
<attribute name="name" type="String" required="false"
description="Name for a named injection, can be used multiple times for naming individual method arguments"/>
</metadata>
<metadata name="PreDestroy"
description="Swiftsuspenders flag to automatically call this method before object destruction (before the instance is removed from the Injector's lookup maps and thus not available to it anymore)">
<context name="method"/>
<attribute name="order" type="int" required="false"
description="Flag indicating at which point in the total order of PostConstruct-annotated methods this method should be called. Order is independent of inheritance"/>
<attribute name="name" type="String" required="false"
description="Name for a named injection, can be used multiple times for naming individual method arguments"/>
</metadata>
</annotations>