net.vidageek.mirror
Class DefaultClassController<T>

java.lang.Object
  extended by net.vidageek.mirror.DefaultClassController<T>
All Implemented Interfaces:
ClassController<T>

public final class DefaultClassController<T>
extends Object
implements ClassController<T>

Object to provide reflection for a Class object

Author:
jonasabreu

Constructor Summary
DefaultClassController(ReflectionProvider provider, Class<T> clazz)
           
 
Method Summary
 GetterHandler get()
          This part of the DSL controls getting field values.
 InvocationHandler<T> invoke()
          This part of the DSL controls invocation of methods and constructors.
 ReflectionHandler<T> reflect()
          This part of the DSL controls reflection of single reflection elements.
 AllReflectionHandler<T> reflectAll()
          This part of the DSL controls reflection of lists of reflection elements.
 SetterHandler set()
          This part of the DSL controls setting of fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultClassController

public DefaultClassController(ReflectionProvider provider,
                              Class<T> clazz)
Method Detail

invoke

public InvocationHandler<T> invoke()
Description copied from interface: ClassController
This part of the DSL controls invocation of methods and constructors.

Specified by:
invoke in interface ClassController<T>
Returns:
An object to control invocation.

set

public SetterHandler set()
Description copied from interface: ClassController
This part of the DSL controls setting of fields.

Specified by:
set in interface ClassController<T>
Returns:
An object to control setting.

get

public GetterHandler get()
Description copied from interface: ClassController
This part of the DSL controls getting field values.

Specified by:
get in interface ClassController<T>
Returns:
An object to control getting of values.

reflect

public ReflectionHandler<T> reflect()
Description copied from interface: ClassController
This part of the DSL controls reflection of single reflection elements.

Specified by:
reflect in interface ClassController<T>
Returns:
An object to control reflection of single reflection elements.

reflectAll

public AllReflectionHandler<T> reflectAll()
Description copied from interface: ClassController
This part of the DSL controls reflection of lists of reflection elements.

Specified by:
reflectAll in interface ClassController<T>
Returns:
An object to control reflection of lists of reflection elements.


Copyright © 2011 VidaGeek.net. All Rights Reserved.