|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.message.ChunkTypeImpl
Basic implementation of ChunkType
interface
Constructor Summary | |
ChunkTypeImpl()
Default constructor. |
|
ChunkTypeImpl(Class chunkItf,
Class chunkImpl)
Creates a new Chunk type by specifying the class object of the interface provided by chunks of this type |
|
ChunkTypeImpl(String itfSignature,
String implSignature)
Creates a new chunk type. |
Method Summary | |
Class |
getChunkImpl()
Returns the Class object implementing the chunk interface. |
Class |
getChunkItf()
Returns the Class object corresponding to the signature of this chunk type |
String |
getChunkSignature()
Returns the signatures of the methods provided by chunks of this type. |
boolean |
isSubTypeOf(ChunkType t)
Returns true if this chunk type if a sub type of the given
chunk type. |
void |
readExternal(ObjectInput in)
|
void |
recycle()
Recycles the object. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChunkTypeImpl()
public ChunkTypeImpl(String itfSignature, String implSignature) throws ClassNotFoundException
itfSignature
- the signature of this chunk typeimplSignature
- the signature of the chunk implementation
ClassNotFoundException
- if the the class corresponding to the
signature cannot be found.
IllegalArgumentException
- if the specified signature does not
correspond to an interface.public ChunkTypeImpl(Class chunkItf, Class chunkImpl)
chunkItf
- class object of the interface provided by chunks of this
typechunkImpl
- class object of the implementation of the chunk.
IllegalArgumentException
- if the specified class object does not
designate an interface.Method Detail |
public String getChunkSignature()
ChunkType
getChunkSignature
in interface ChunkType
ChunkType.getChunkSignature()
public boolean isSubTypeOf(ChunkType t)
ChunkType
true
if this chunk type if a sub type of the given
chunk type.
isSubTypeOf
in interface ChunkType
t
- a chunk type
true
if this chunk type if a sub type of the given
chunk type.ChunkType.isSubTypeOf(ChunkType)
public Class getChunkItf()
public Class getChunkImpl()
public void recycle()
Recyclable
recycle
in interface Recyclable
Recyclable.recycle()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Externalizable.readExternal(ObjectInput)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Externalizable.writeExternal(java.io.ObjectOutput)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |