com.sun.xml.bind.v2.runtime.reflect.opt
Class OptimizedAccessorFactory

java.lang.Object
  extended by com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory

public abstract class OptimizedAccessorFactory
extends Object


Method Summary
static
<B,V> Accessor<B,V>
get(Field field)
          Gets the optimizd Accessor that accesses the given field.
static
<B,V> Accessor<B,V>
get(Method getter, Method setter)
          Gets the optimized Accessor that accesses the given getter/setter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static final <B,V> Accessor<B,V> get(Method getter,
                                            Method setter)
Gets the optimized Accessor that accesses the given getter/setter.

Returns:
null if for some reason it fails to create an optimized version.

get

public static final <B,V> Accessor<B,V> get(Field field)
Gets the optimizd Accessor that accesses the given field.

Returns:
null if for some reason it fails to create an optimized version.