public class StorableIntrospector
extends java.lang.Object
Storable
types, returning all metadata
associated with it. As part of the examination, all annotations are gathered
up. All examined data is cached, so repeat examinations are fast, unless the
examination failed.Constructor and Description |
---|
StorableIntrospector() |
Modifier and Type | Method and Description |
---|---|
static <S extends Storable> |
examine(java.lang.Class<S> type)
Examines the given class and returns a StorableInfo describing it.
|
static java.lang.Class<? extends Storable> |
inferType(java.lang.Class clazz)
Examines a class and determines what Storable type it implements.
|
static void |
main(java.lang.String[] args)
Test program which examines candidate Storable classes.
|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- names of classes to examinejava.lang.Exception
public static <S extends Storable> StorableInfo<S> examine(java.lang.Class<S> type)
type
- Storable type to examineMalformedTypeException
- if Storable type is invalidjava.lang.IllegalArgumentException
- if type is nullpublic static java.lang.Class<? extends Storable> inferType(java.lang.Class clazz)
examined
to check validity.Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.