com.caucho.hessian.io
Class AnnotationSerializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractSerializer
      extended by com.caucho.hessian.io.AnnotationSerializer
All Implemented Interfaces:
Serializer

public class AnnotationSerializer
extends AbstractSerializer

Serializing a Java annotation


Nested Class Summary
(package private) static class AnnotationSerializer.BooleanMethodSerializer
           
(package private) static class AnnotationSerializer.DateMethodSerializer
           
(package private) static class AnnotationSerializer.DoubleMethodSerializer
           
(package private) static class AnnotationSerializer.IntMethodSerializer
           
(package private) static class AnnotationSerializer.LongMethodSerializer
           
(package private) static class AnnotationSerializer.MethodSerializer
           
(package private) static class AnnotationSerializer.StringMethodSerializer
           
 
Nested classes/interfaces inherited from class com.caucho.hessian.io.AbstractSerializer
AbstractSerializer.NullSerializer
 
Field Summary
private  java.lang.Class _annType
           
private  java.lang.reflect.Method[] _methods
           
private  AnnotationSerializer.MethodSerializer[] _methodSerializers
           
private static java.util.logging.Logger log
           
private static java.lang.Object[] NULL_ARGS
           
 
Fields inherited from class com.caucho.hessian.io.AbstractSerializer
NULL
 
Constructor Summary
AnnotationSerializer(java.lang.Class annType)
           
 
Method Summary
(package private) static HessianException error(java.lang.reflect.Method method, java.lang.Throwable cause)
           
private  java.lang.Class getAnnotationType(java.lang.Class cl)
           
private static AnnotationSerializer.MethodSerializer getMethodSerializer(java.lang.Class type)
           
private  void init(java.lang.Class cl)
           
private  void writeDefinition20(AbstractHessianOutput out)
           
 void writeInstance(java.lang.Object obj, AbstractHessianOutput out)
           
 void writeObject(java.lang.Object obj, AbstractHessianOutput out)
           
protected  void writeObject10(java.lang.Object obj, AbstractHessianOutput out)
           
 
Methods inherited from class com.caucho.hessian.io.AbstractSerializer
getClass, writeDefinition20, writeReplace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final java.util.logging.Logger log

NULL_ARGS

private static java.lang.Object[] NULL_ARGS

_annType

private java.lang.Class _annType

_methods

private java.lang.reflect.Method[] _methods

_methodSerializers

private AnnotationSerializer.MethodSerializer[] _methodSerializers
Constructor Detail

AnnotationSerializer

public AnnotationSerializer(java.lang.Class annType)
Method Detail

writeObject

public void writeObject(java.lang.Object obj,
                        AbstractHessianOutput out)
                 throws java.io.IOException
Specified by:
writeObject in interface Serializer
Overrides:
writeObject in class AbstractSerializer
Throws:
java.io.IOException

writeObject10

protected void writeObject10(java.lang.Object obj,
                             AbstractHessianOutput out)
                      throws java.io.IOException
Overrides:
writeObject10 in class AbstractSerializer
Throws:
java.io.IOException

writeDefinition20

private void writeDefinition20(AbstractHessianOutput out)
                        throws java.io.IOException
Throws:
java.io.IOException

writeInstance

public void writeInstance(java.lang.Object obj,
                          AbstractHessianOutput out)
                   throws java.io.IOException
Overrides:
writeInstance in class AbstractSerializer
Throws:
java.io.IOException

init

private void init(java.lang.Class cl)

getAnnotationType

private java.lang.Class getAnnotationType(java.lang.Class cl)

getMethodSerializer

private static AnnotationSerializer.MethodSerializer getMethodSerializer(java.lang.Class type)

error

static HessianException error(java.lang.reflect.Method method,
                              java.lang.Throwable cause)


Copyright 2003-2011. All Rights Reserved.