|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.vidageek.mirror.dsl.Mirror
public final class Mirror
This is the basic class to use Mirror. All Reflection features can be accessed using this class. It will load configuration file [mirror.properties]. Full Mirror configuration is found at http://projetos.vidageek.net/mirror/extension/configuration/ *
| Constructor Summary | |
|---|---|
Mirror()
|
|
Mirror(ReflectionProvider provider)
|
|
| Method Summary | ||
|---|---|---|
MemberController |
on(AnnotatedElement member)
Method to access reflection on any AnnotatedElement |
|
|
on(Class<T> clazz)
Method to access reflection on clazz. |
|
FieldController |
on(Field field)
Method to access reflection on any Field. |
|
AccessorsController |
on(Object object)
Method to access reflection on object. |
|
ClassController<?> |
on(String className)
Convenience method for on(Class). |
|
ProxyHandler<Object> |
proxify(Class<?>... classes)
Method to create proxys of classes. |
|
|
proxify(Class<T> clazz)
Convenience method for proxify(Class...) |
|
ProxyHandler<Object> |
proxify(String... classNames)
Convenience method for proxify(Class...) |
|
ProxyHandler<Object> |
proxify(String className)
Convenience method for proxify(Class...) |
|
Class<?> |
reflectClass(String className)
This method will reflect a Class object that is represented by className. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Mirror(ReflectionProvider provider)
public Mirror()
| Method Detail |
|---|
public Class<?> reflectClass(String className)
className - Full qualified name of the class you want to reflect.
MirrorException - if no class on current ClassLoader has class represented by
className.
IllegalArgumentException - if className is null or empty.public <T> ClassController<T> on(Class<T> clazz)
clazz - Class object to be used.
IllegalArgumentException - if clazz is null.public AccessorsController on(Object object)
object - Object to be used.
IllegalArgumentException - if object is null.public ClassController<?> on(String className)
on(Class).
on(Class),
reflectClass(String)public MemberController on(AnnotatedElement member)
object - AccessibleObject to be used.
AccessibleObjectpublic FieldController on(Field field)
field - to be used
IllegalArgumentException - if field is null.public <T> ProxyHandler<T> proxify(Class<T> clazz)
proxify(Class...)
Mirror#on(Class)},
Mirror#proxify(Class...)}public ProxyHandler<Object> proxify(String className)
proxify(Class...)
Mirror#on(Class)},
Mirror#proxify(Class...)}public ProxyHandler<Object> proxify(String... classNames)
proxify(Class...)
Mirror#on(Class)},
Mirror#proxify(Class...)},
Mirror#reflectClass(String)}public ProxyHandler<Object> proxify(Class<?>... classes)
classes - to be proxified
IllegalArgumentException - if any class is null or there is more than one class that is
not an interface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||