Top Description Fields Constructors Methods
com.sun.faces.util.copier

public Class MultiStrategyCopier

extends Object
implements Copier
Class Inheritance
All Implemented Interfaces
com.sun.faces.util.copier.Copier
Static Imports
java.util.Arrays.asList

Copier that copies an object trying a variety of strategies until one succeeds.

The strategies that will be attempted in order are:

  1. Serialization
  2. Cloning
  3. Copy constructor
  4. New instance
Author
Arjan Tijms
Since
2.3

Field Summary

Modifier and TypeField and Description
private static final List<Copier>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
copy(Object
the object to be copied
object
)

Implements com.sun.faces.util.copier.Copier.copy.

Return an object that's logically a copy of the given object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

COPIERSback to summary
private static final List<Copier> COPIERS

Constructor Detail

MultiStrategyCopierback to summary
public MultiStrategyCopier()

Method Detail

copyback to summary
public Object copy(Object object)

Implements com.sun.faces.util.copier.Copier.copy.

Doc from com.sun.faces.util.copier.Copier.copy.

Return an object that's logically a copy of the given object.

Parameters
object:Object

the object to be copied

Returns:Object

a copy of the given object

Annotations
@Override