org.apache.hivemind.definition.impl
Class ServicePointDefinitionImpl
java.lang.Object
org.apache.hivemind.definition.impl.ExtensionPointDefinitionImpl
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServicePointDefinitionImpl
public ServicePointDefinitionImpl(ModuleDefinition module)
ServicePointDefinitionImpl
public ServicePointDefinitionImpl(ModuleDefinition module,
java.lang.String id,
Location location,
Visibility visibility,
java.lang.String interfaceClassName)
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.