Permalink
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (35 sloc) 2.08 KB
<?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>