org.hudsonci.utils.marshal.xref
Class XReference<T>

java.lang.Object
  extended by org.hudsonci.utils.marshal.xref.XReference<T>

public abstract class XReference<T>
extends Object

Reference to an externally serialized entity.

Since:
2.1.0
Author:
Jason Dillon

Nested Class Summary
static interface XReference.Holder<T>
          Provides delegation for instance access.
static class XReference.InstanceHolder<T>
          Holds on to a specific instance.
 
Field Summary
protected  XReference.Holder<T> holder
           
 
Constructor Summary
XReference()
           
XReference(T value)
           
 
Method Summary
 T get()
           
 Marshaller getMarshaller()
          Override to provide alternative marshalling.
abstract  String getPath()
          Defines the path of the external reference.
 void set(T value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

holder

protected transient XReference.Holder<T> holder
Constructor Detail

XReference

public XReference(T value)

XReference

public XReference()
Method Detail

set

public void set(T value)

get

public T get()

getPath

public abstract String getPath()
Defines the path of the external reference.


getMarshaller

public Marshaller getMarshaller()
Override to provide alternative marshalling.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2012 Hudson. All Rights Reserved.