org.apache.hivemind.definition.impl
Class ServicePointDefinitionImpl

java.lang.Object
  extended by org.apache.hivemind.definition.impl.ExtensionPointDefinitionImpl
      extended by org.apache.hivemind.definition.impl.ServicePointDefinitionImpl
All Implemented Interfaces:
ExtensionPointDefinition, ServicePointDefinition, Locatable

public class ServicePointDefinitionImpl
extends ExtensionPointDefinitionImpl
implements ServicePointDefinition

Default implementation of ServicePointDefinition.

Author:
Achim Huegen

Constructor Summary
ServicePointDefinitionImpl(ModuleDefinition module)
           
ServicePointDefinitionImpl(ModuleDefinition module, java.lang.String id, Location location, Visibility visibility, java.lang.String interfaceClassName)
           
 
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()
           
 void setInterfaceClassName(java.lang.String interfaceClassName)
          Sets the class name of the service interface.
 
Methods inherited from class org.apache.hivemind.definition.impl.ExtensionPointDefinitionImpl
getId, getLocation, getModule, getModuleId, getQualifiedId, getVisibility, setId, setLocation, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hivemind.definition.ExtensionPointDefinition
getId, getModuleId, getQualifiedId, getVisibility
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

ServicePointDefinitionImpl

public ServicePointDefinitionImpl(ModuleDefinition module)

ServicePointDefinitionImpl

public ServicePointDefinitionImpl(ModuleDefinition module,
                                  java.lang.String id,
                                  Location location,
                                  Visibility visibility,
                                  java.lang.String interfaceClassName)
Method Detail

getInterfaceClassName

public java.lang.String getInterfaceClassName()
Specified by:
getInterfaceClassName in interface ServicePointDefinition
Returns:
the fully qualified class name of the service interface. This may be the name of a ordinary class or an interface.
See Also:
ServicePointDefinition.getInterfaceClassName()

setInterfaceClassName

public void setInterfaceClassName(java.lang.String interfaceClassName)
Sets the class name of the service interface.

Parameters:
interfaceClassName - the fully qualified class name of the service interface. This may be the name of a ordinary class or an interface.

getImplementations

public java.util.Collection getImplementations()
Specified by:
getImplementations in interface ServicePointDefinition
Returns:
the impelementations of this service point as instances of ImplementationDefinition
See Also:
ServicePointDefinition.getImplementations()

getDefaultImplementation

public ImplementationDefinition getDefaultImplementation()
Specified by:
getDefaultImplementation in interface ServicePointDefinition
Returns:
the default implementation of the service. The default is selected by ImplementationDefinition.isDefault() if multiple exist.
See Also:
ServicePointDefinition.getDefaultImplementation()

addImplementation

public void addImplementation(ImplementationDefinition implementation)
Description copied from interface: ServicePointDefinition
Adds an implementation definition to the service point.

Specified by:
addImplementation in interface ServicePointDefinition
Parameters:
implementation - the implementation
See Also:
ServicePointDefinition.addImplementation(org.apache.hivemind.definition.ImplementationDefinition)

getInterceptors

public java.util.Collection getInterceptors()
Specified by:
getInterceptors in interface ServicePointDefinition
Returns:
the interceptors of this service point as instances of InterceptorDefinition
See Also:
ServicePointDefinition.getInterceptors()

addInterceptor

public void addInterceptor(InterceptorDefinition interceptor)
Description copied from interface: ServicePointDefinition
Adds an interceptor definition to the service point.

Specified by:
addInterceptor in interface ServicePointDefinition
Parameters:
interceptor - the interceptor
See Also:
ServicePointDefinition.addInterceptor(org.apache.hivemind.definition.InterceptorDefinition)


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