Package org.apache.openejb.jee
Interface Keyable<K>
-
- All Known Subinterfaces:
EjbReference,Field,JndiReference,PersistenceRef,RelationField
- All Known Implementing Classes:
ApplicationException,AttributeOverride,Basic,DataSource,EjbLocalRef,EjbRef,Entity,EnvEntry,ExceptionMapping,Icon,Id,JMSConnectionFactory,JMSDestination,ManyToMany,ManyToOne,MappedSuperclass,MessageDestination,MessageDestinationRef,OneToMany,OneToOne,PackageMapping,PersistenceContextRef,PersistenceUnitRef,PortComponent,ResourceEnvRef,ResourceRef,ServiceEndpointInterfaceMapping,ServiceRef,Transient,WebserviceDescription,WebserviceDescription,WebserviceEndpoint
public interface Keyable<K>A keyable object can provide an immutable key for this object. It is important for the key to not be mutable and that the key value itself is not changed in the object. If this happens any AutoIndex, or Map using this key will break.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KgetKey()Gets the immutable key for this object.
-
-
-
Method Detail
-
getKey
K getKey()
Gets the immutable key for this object.- Returns:
- gets the immutable key for this object
-
-