public class

PropertySetCloner

extends Object
java.lang.Object
   ↳ com.opensymphony.module.propertyset.PropertySetCloner

Class Overview

The PropertySetCloner is used to copy all the properties from one PropertySet into another.

Example

EJBPropertySet source = new EJBPropertySet("ejb/PropertyStore","MyEJB",7);
XMLPropertySet dest = new XMLPropertySet();

PropertySetCloner cloner = new PropertySetCloner();
cloner.setSource( source );
cloner.setDestination( dest );

cloner.cloneProperties();
dest.save( new FileWriter("propertyset-MyEJB-7.xml") );

The above example demonstrates how a PropertySetCloner can be used to export properties stores in an EJBPropertySet to an XML file.

If the destination PropertySet contains any properties, they will be cleared before the source properties are copied across.

Summary

Public Constructors
PropertySetCloner()
Public Methods
void cloneProperties()
PropertySet getDestination()
PropertySet getSource()
void setDestination(PropertySet destination)
void setSource(PropertySet source)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PropertySetCloner ()

Public Methods

public void cloneProperties ()

public PropertySet getDestination ()

public PropertySet getSource ()

public void setDestination (PropertySet destination)

public void setSource (PropertySet source)