org.apache.hivemind.definition.impl
Class ContributionDefinitionImpl

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

public class ContributionDefinitionImpl
extends ExtensionDefinitionImpl
implements ContributionDefinition

Default implementation of ContributionDefinition.

Author:
Achim Huegen

Constructor Summary
ContributionDefinitionImpl(ModuleDefinition module)
           
ContributionDefinitionImpl(ModuleDefinition module, Location location, Contribution contribution, boolean initial)
           
 
Method Summary
 Contribution getContribution()
           
 boolean isInitalContribution()
           
 void setContribution(Contribution contribution)
          Sets the contribution 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

ContributionDefinitionImpl

public ContributionDefinitionImpl(ModuleDefinition module)

ContributionDefinitionImpl

public ContributionDefinitionImpl(ModuleDefinition module,
                                  Location location,
                                  Contribution contribution,
                                  boolean initial)
Method Detail

getContribution

public Contribution getContribution()
Specified by:
getContribution in interface ContributionDefinition
Returns:
the contribution implementation.
See Also:
ContributionDefinition.getContribution()

setContribution

public void setContribution(Contribution contribution)
Sets the contribution implementation.


isInitalContribution

public boolean isInitalContribution()
Specified by:
isInitalContribution in interface ContributionDefinition
Returns:
true if the contribution is the initial one to be processed first. Only one contribution of a configuration point is allowed to return true here.
See Also:
ContributionDefinition.isInitalContribution()


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