[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Anonymous beans
alesj
do-not-reply at jboss.com
Tue Apr 8 08:04:41 EDT 2008
"alesj" wrote :
| And I guess I would also have to iterate over all the collection items that are not immutable and clone them before adding them to new collection instance.
|
I need MetaDataVisitorNode to extend JBossInterface in order to clone AbstractCollectionMetaData and AbstractMapMetaData:
| public class AbstractCollectionMetaData extends AbstractTypeMetaData
| implements Collection<MetaDataVisitorNode>, Serializable
| {
| private static final long serialVersionUID = 2L;
|
| /** The collection */
| protected List<MetaDataVisitorNode> collection = new ArrayList<MetaDataVisitorNode>();
|
| ...
|
| public class AbstractMapMetaData extends AbstractTypeMetaData
| implements Map<MetaDataVisitorNode, MetaDataVisitorNode>, Serializable
| {
| private static final long serialVersionUID = 2L;
|
| /** The map */
| private Map<MetaDataVisitorNode, MetaDataVisitorNode> map = new HashMap<MetaDataVisitorNode, MetaDataVisitorNode>();
|
So that I can iterate over the items and call item::clone().
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142331#4142331
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142331
More information about the jboss-dev-forums
mailing list