org.jboss.jca.common.api.metadata
Interface CopyableMetaData

All Superinterfaces:
Cloneable
All Known Subinterfaces:
Activationspec15, Activationspec16, AdminObject, AuthenticationMechanism, ConfigProperty, ConfigProperty16, ConnectionDefinition, Connector, Connector10, Connector15, Connector16, InboundResourceAdapter, Messageadapter, MessageListener, OutboundResourceAdapter, ResourceAdapter, ResourceAdapter10, ResourceAdapter1516, SecurityPermission
All Known Implementing Classes:
Icon, LicenseType, LocalizedXsdString, Path, RequiredConfigProperty, XsdString

public interface CopyableMetaData
extends Cloneable

A CopyableMetaData. This interface force implementors to override copy() method. On the presence of this method are based some assumption to use generics during clone deep into the metadatas members.

Author:
Stefano Maestri

Method Summary
 CopyableMetaData copy()
          Creates and returns a copy of this object.
 

Method Detail

copy

CopyableMetaData copy()
Creates and returns a copy of this object. Ther copy is done in deep of all elements. It isn't formally a clone of the instance since it does not respect the assumption for which returned clone of cloneMethod are instance of Object

Returns:
a copy of this instance.


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)