org.apache.hivemind.definition
Interface ServicePointDefinition

All Superinterfaces:
ExtensionPointDefinition, Locatable
All Known Implementing Classes:
ServicePointDefinitionImpl

public interface ServicePointDefinition
extends ExtensionPointDefinition

Defines a service extension point. The definition includes the service interface, implementations and interceptors.

Author:
Achim Huegen

Method Summary
 void addImplementation(ImplementationDefinition implementation)
          Adds an implementation definition to the service point.
 void addInterceptor(InterceptorDefinition interceptor)
          Adds an interceptor definition to the service point.
 ImplementationDefinition getDefaultImplementation()
           
 java.util.Collection getImplementations()
           
 java.util.Collection getInterceptors()
           
 java.lang.String getInterfaceClassName()
           
 
Methods inherited from interface org.apache.hivemind.definition.ExtensionPointDefinition
getId, getModuleId, getQualifiedId, getVisibility
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Method Detail

getInterfaceClassName

java.lang.String getInterfaceClassName()
Returns:
the fully qualified class name of the service interface. This may be the name of a ordinary class or an interface.

getDefaultImplementation

ImplementationDefinition getDefaultImplementation()
Returns:
the default implementation of the service. The default is selected by ImplementationDefinition.isDefault() if multiple exist.

addImplementation

void addImplementation(ImplementationDefinition implementation)
Adds an implementation definition to the service point.

Parameters:
implementation - the implementation
Throws:
ApplicationRuntimeException - if this point is not visible from the module that defines the implementation

getImplementations

java.util.Collection getImplementations()
Returns:
the impelementations of this service point as instances of ImplementationDefinition

getInterceptors

java.util.Collection getInterceptors()
Returns:
the interceptors of this service point as instances of InterceptorDefinition

addInterceptor

void addInterceptor(InterceptorDefinition interceptor)
Adds an interceptor definition to the service point.

Parameters:
interceptor - the interceptor
Throws:
ApplicationRuntimeException - if this point is not visible from the module that defines the interceptor.


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.