java.lang.Object | |
↳ | com.opensymphony.module.propertyset.PropertySetCloner |
The PropertySetCloner is used to copy all the properties from one PropertySet into another.
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|