public interface CopyFrom
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(CopyFrom obj)
Copies all the properties of the given bean into this one.
|
Class<? extends CopyFrom> |
getInterface()
Returns the interface the copyFrom works on.
|
Class<? extends CopyFrom> getInterface()
This is useful when dealing with properties that may have multiple implementations. For example, Module.
void copyFrom(CopyFrom obj)
Any existing properties in this bean are lost.
This method is useful for moving from one implementation of a bean interface to another. For example from the default SyndFeed bean implementation to a Hibernate ready implementation.
obj
- the instance to copy properties from.Copyright © 2016. All rights reserved.