org.apache.felix.scrplugin.description
Class AbstractDescription

java.lang.Object
  extended by org.apache.felix.scrplugin.description.AbstractDescription
Direct Known Subclasses:
ComponentDescription, PropertyDescription, ReferenceDescription, ServiceDescription

public abstract class AbstractDescription
extends java.lang.Object

AbstractDescription is the base class for all descriptions.

See Also:
ComponentDescription, ServiceDescription, ReferenceDescription, PropertyDescription

Field Summary
protected  ScannedAnnotation annotation
          The corresponding annotation from the class file.
 
Constructor Summary
AbstractDescription(ScannedAnnotation annotation)
          Create a new abstract description
 
Method Summary
abstract  AbstractDescription clone()
           
 ScannedAnnotation getAnnotation()
          Get the annotation.
 java.lang.String getIdentifier()
           
 java.lang.String getSource()
           
 void setSource(java.lang.String location)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

annotation

protected final ScannedAnnotation annotation
The corresponding annotation from the class file.

Constructor Detail

AbstractDescription

public AbstractDescription(ScannedAnnotation annotation)
Create a new abstract description

Parameters:
annotation - The corresponding annotation.
Method Detail

getAnnotation

public ScannedAnnotation getAnnotation()
Get the annotation.

Returns:
The annotation or null

setSource

public void setSource(java.lang.String location)

getSource

public java.lang.String getSource()

getIdentifier

public java.lang.String getIdentifier()

clone

public abstract AbstractDescription clone()
Overrides:
clone in class java.lang.Object


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.