org.jboss.deployers.plugins.annotations
Class ClassSignaturePair

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.deployers.plugins.annotations.ClassSignaturePair
All Implemented Interfaces:
Cloneable, org.jboss.util.JBossInterface

public class ClassSignaturePair
extends org.jboss.util.JBossObject

Class name and signature pair. With those two we can re-create annotation value. If the keepAnnotations flag is on in DefaultAnnotationEnvironment we cache the annotation value from GenericAnnotationResourceVisitor.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
ClassSignaturePair(String className, org.jboss.metadata.spi.signature.Signature signature)
           
ClassSignaturePair(String className, org.jboss.metadata.spi.signature.Signature signature, Annotation annotation)
           
 
Method Summary
 boolean equals(Object obj)
           
 Annotation getAnnotation()
          Get the annotation.
 String getClassName()
          Get the classname.
protected  int getHashCode()
           
 org.jboss.metadata.spi.signature.Signature getSignature()
          Get the signature.
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassSignaturePair

public ClassSignaturePair(String className,
                          org.jboss.metadata.spi.signature.Signature signature)

ClassSignaturePair

public ClassSignaturePair(String className,
                          org.jboss.metadata.spi.signature.Signature signature,
                          Annotation annotation)
Method Detail

getClassName

public String getClassName()
Get the classname.

Returns:
the classname

getSignature

public org.jboss.metadata.spi.signature.Signature getSignature()
Get the signature.

Returns:
the signature

getAnnotation

public Annotation getAnnotation()
Get the annotation.

Returns:
the annotation

getHashCode

protected int getHashCode()
Overrides:
getHashCode in class org.jboss.util.JBossObject

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.