org.apache.tapestry5.ioc.annotations
Annotation Type Optional


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
@UseWith(value=MODULE)
public @interface Optional

Marks a service contribution method within a module as being optional: it is not an error if the contribution does not match against an actual service. In that case, the method will simply never be invoked.

Since:
5.3
See Also:
Contribute



Copyright © 2003-2012 The Apache Software Foundation.