|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.peaberry.util.TypeLiterals
public final class TypeLiterals
Methods for creating TypeLiterals that can be used with peaberry.
| Method Summary | ||
|---|---|---|
static
|
export(Class<T> clazz)
Create TypeLiteral matching an exported handle of the given type. |
|
static
|
iterable(Class<T> clazz)
Create TypeLiteral matching an iterable sequence of the given type. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> com.google.inject.TypeLiteral<Iterable<? extends T>> iterable(Class<T> clazz)
TypeLiteral matching an iterable sequence of the given type.
clazz - service interface
Iterable<? extends T>public static <T> com.google.inject.TypeLiteral<Export<? extends T>> export(Class<T> clazz)
TypeLiteral matching an exported handle of the given type.
clazz - service interface
Export<? extends T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||