org.apache.hivemind.parse
Class AbstractServiceDescriptor

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.hivemind.parse.BaseAnnotationHolder
          extended by org.apache.hivemind.parse.AbstractServiceDescriptor
All Implemented Interfaces:
Locatable, LocationHolder, AnnotationHolder
Direct Known Subclasses:
ImplementationDescriptor, ServicePointDescriptor

public abstract class AbstractServiceDescriptor
extends BaseAnnotationHolder

Base class for ServicePointDescriptor and ImplementationDescriptor.

Author:
Howard Lewis Ship

Constructor Summary
AbstractServiceDescriptor()
           
 
Method Summary
 void addInterceptor(InterceptorDescriptor interceptor)
           
protected abstract  void extendDescription(ToStringBuilder builder)
          Implemented in subclasses to provide details about the instance.
 InstanceBuilder getInstanceBuilder()
           
 java.util.List getInterceptors()
          Returns a list of InterceptorDescriptor.
 void setInstanceBuilder(InstanceBuilder descriptor)
          A service extension may contribute one instance builder.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.hivemind.parse.BaseAnnotationHolder
getAnnotation, setAnnotation
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractServiceDescriptor

public AbstractServiceDescriptor()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

extendDescription

protected abstract void extendDescription(ToStringBuilder builder)
Implemented in subclasses to provide details about the instance.


getInstanceBuilder

public InstanceBuilder getInstanceBuilder()

setInstanceBuilder

public void setInstanceBuilder(InstanceBuilder descriptor)
A service extension may contribute one instance builder.


addInterceptor

public void addInterceptor(InterceptorDescriptor interceptor)

getInterceptors

public java.util.List getInterceptors()
Returns a list of InterceptorDescriptor. May return null. The caller should not modify the returned list.