org.jvnet.hk2.annotations
Annotation Type ContractProvided


@Target(value=TYPE)
public @interface ContractProvided

A service provider provides a service implementation, however, the provided service interface is not tagged with @Contract (a jdk interface for instance), therefore, it is specified through this annotation. Example :

 import java.util.logging.Handler

 @Service(name="console")
 @ContractProvided(Handler.class)
 public class MyConsoleHandler implements Handler {
      // implementation of Handler interface
 }
 


Required Element Summary
 Class value
           
 

Element Detail

value

public abstract Class value


Submit a bug or feature

Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.

Generated on 12-March-2010 04:35