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

Class NullSafeAccessor<B,V,P>

public class NullSafeAccessor<B,V,P> extends Accessor<B,V>

Accessor wrapper that replaces a null with an empty collection.

This is so that JAX-WS property accessor will work like an ordinary getter.

Constructor Summary
NullSafeAccessor(Accessor<B,V> core, Lister<B,V,?,P> lister)
Method Summary
Vget(B bean)
voidset(B bean, V value)

Constructor Detail

NullSafeAccessor

public NullSafeAccessor(Accessor<B,V> core, Lister<B,V,?,P> lister)

Method Detail

get

public V get(B bean)

set

public void set(B bean, V value)