Annotation Type Typed

public @interface Typed

Restricts the bean types of a bean. May be applied to a bean class or producer method or field.

 public class BookShop
       extends Business
       implements Shop<Book> { 

When a @Typed annotation is specified, only the types whose classes are explicitly listed using the value member, along with Object, are bean types of the bean.

Pete Muir, Gavin King

Optional Element Summary
 java.lang.Class<?>[] value
          Selects the bean types of the bean.


public abstract java.lang.Class<?>[] value

Selects the bean types of the bean. Every class must correspond to a type in the unrestricted set of bean types of a bean.

the classes corresponding to the bean types of the bean

Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41

Scripting on this page tracks web page traffic, but does not change the content in any way.