org.apache.hivemind.definition.impl
Class ImplementationDefinitionImpl

java.lang.Object
  extended by org.apache.hivemind.definition.impl.ExtensionDefinitionImpl
      extended by org.apache.hivemind.definition.impl.ImplementationDefinitionImpl
All Implemented Interfaces:
ExtensionDefinition, ImplementationDefinition, Locatable

public class ImplementationDefinitionImpl
extends ExtensionDefinitionImpl
implements ImplementationDefinition

Default implementation of ImplementationDefinition.

Author:
Achim Huegen

Constructor Summary
ImplementationDefinitionImpl(ModuleDefinition module)
           
ImplementationDefinitionImpl(ModuleDefinition module, Location location, ImplementationConstructor implementationConstructor, java.lang.String serviceModel, boolean isDefault)
           
 
Method Summary
 ImplementationConstructor getServiceConstructor()
           
 java.lang.String getServiceModel()
           
 boolean isDefault()
           
 void setDefault(boolean isDefault)
          Sets the default attribute of the implementation.
 void setImplementationConstructor(ImplementationConstructor serviceConstructor)
          Sets the constructor implementation that is used for the creation of the implementation instance.
 void setServiceModel(java.lang.String serviceModel)
          Sets the service model of the implementation.
 
Methods inherited from class org.apache.hivemind.definition.impl.ExtensionDefinitionImpl
getLocation, getModule, getModuleId, setLocation
 
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.ExtensionDefinition
getModule, getModuleId
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

ImplementationDefinitionImpl

public ImplementationDefinitionImpl(ModuleDefinition module)

ImplementationDefinitionImpl

public ImplementationDefinitionImpl(ModuleDefinition module,
                                    Location location,
                                    ImplementationConstructor implementationConstructor,
                                    java.lang.String serviceModel,
                                    boolean isDefault)
Method Detail

getServiceModel

public java.lang.String getServiceModel()
Specified by:
getServiceModel in interface ImplementationDefinition
Returns:
the name of the ServiceModel to use
See Also:
ImplementationDefinition.getServiceModel()

setServiceModel

public void setServiceModel(java.lang.String serviceModel)
Sets the service model of the implementation.


isDefault

public boolean isDefault()
Specified by:
isDefault in interface ImplementationDefinition
Returns:
true, if this is the default implementation of the service
See Also:
ImplementationDefinition.isDefault()

setDefault

public void setDefault(boolean isDefault)
Sets the default attribute of the implementation.

Parameters:
isDefault - true, if this implementation is the default one

getServiceConstructor

public ImplementationConstructor getServiceConstructor()
Specified by:
getServiceConstructor in interface ImplementationDefinition
Returns:
the constructor for the creation of the implementation instance.
See Also:
ImplementationDefinition.getServiceConstructor()

setImplementationConstructor

public void setImplementationConstructor(ImplementationConstructor serviceConstructor)
Sets the constructor implementation that is used for the creation of the implementation instance.



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