org.apache.hivemind.definition.impl
Class ExtensionDefinitionImpl

java.lang.Object
  extended by org.apache.hivemind.definition.impl.ExtensionDefinitionImpl
All Implemented Interfaces:
ExtensionDefinition, Locatable
Direct Known Subclasses:
ConfigurationParserDefinitionImpl, ContributionDefinitionImpl, ImplementationDefinitionImpl, InterceptorDefinitionImpl

public class ExtensionDefinitionImpl
extends java.lang.Object
implements ExtensionDefinition

Default implementation of ExtensionDefinition.

Author:
Achim Huegen

Constructor Summary
ExtensionDefinitionImpl(ModuleDefinition module)
           
ExtensionDefinitionImpl(ModuleDefinition module, Location location)
           
 
Method Summary
 Location getLocation()
          Returns the location from which this object orginates, or null if not known.
 ModuleDefinition getModule()
           
 java.lang.String getModuleId()
           
 void setLocation(Location location)
          Sets the location of the extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionDefinitionImpl

public ExtensionDefinitionImpl(ModuleDefinition module)

ExtensionDefinitionImpl

public ExtensionDefinitionImpl(ModuleDefinition module,
                               Location location)
Method Detail

getModuleId

public java.lang.String getModuleId()
Specified by:
getModuleId in interface ExtensionDefinition
Returns:
the id of the module that contributed this extension
See Also:
ExtensionDefinition.getModuleId()

getModule

public ModuleDefinition getModule()
Specified by:
getModule in interface ExtensionDefinition
Returns:
the module that contributed this extension
See Also:
ExtensionDefinition.getModule()

getLocation

public Location getLocation()
Description copied from interface: Locatable
Returns the location from which this object orginates, or null if not known.

Specified by:
getLocation in interface Locatable
See Also:
Locatable.getLocation()

setLocation

public void setLocation(Location location)
Sets the location of the extension.



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