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

Class OptimizedAccessorFactory

public abstract class OptimizedAccessorFactory extends Object

Method Summary
static <B,V> Accessor<B,V>get(Method getter, Method setter)
Gets the optimized Accessor that accesses the given getter/setter.
static <B,V> Accessor<B,V>get(Field field)
Gets the optimizd Accessor that accesses the given field.

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.