org.apache.hivemind.impl
Class AbstractExtensionPoint

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.hivemind.impl.AbstractExtensionPoint
All Implemented Interfaces:
ExtensionPoint, Locatable, LocationHolder
Direct Known Subclasses:
ConfigurationPointImpl, ServicePointImpl

public abstract class AbstractExtensionPoint
extends BaseLocatable
implements ExtensionPoint

Author:
Huegen

Constructor Summary
AbstractExtensionPoint(Module module, ExtensionPointDefinition definition)
           
 
Method Summary
protected abstract  void extendDescription(ToStringBuilder builder)
          Implemented in subclasses to provide details about subclass properties.
protected  ExtensionPointDefinition getDefinition()
           
 ErrorLog getErrorLog()
          Returns an ErrorLog used to report any recoverable errors related to the extension point.
 java.lang.String getExtensionPointId()
          Returns the fully qualified id of the extension point.
 Location getLocation()
          Returns the location from which this object orginates, or null if not known.
 org.apache.commons.logging.Log getLog()
          Returns the Log instance for this extension point.
 Module getModule()
          Returns the Module containing the extension point.
 Visibility getVisibility()
           
 java.lang.String toString()
           
 boolean visibleToModule(Module module)
          Returns true if the extension point is public, or the extgension point is visible to the module.
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractExtensionPoint

public AbstractExtensionPoint(Module module,
                              ExtensionPointDefinition definition)
Parameters:
definition - the definition of this extension point
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

extendDescription

protected abstract void extendDescription(ToStringBuilder builder)
Implemented in subclasses to provide details about subclass properties.


getVisibility

public Visibility getVisibility()

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
Overrides:
getLocation in class BaseLocatable

getExtensionPointId

public java.lang.String getExtensionPointId()
Description copied from interface: ExtensionPoint
Returns the fully qualified id of the extension point.

Specified by:
getExtensionPointId in interface ExtensionPoint

getModule

public Module getModule()
Description copied from interface: ExtensionPoint
Returns the Module containing the extension point.

Specified by:
getModule in interface ExtensionPoint

visibleToModule

public boolean visibleToModule(Module module)
Returns true if the extension point is public, or the extgension point is visible to the module.

Specified by:
visibleToModule in interface ExtensionPoint
Parameters:
module - The module to validate visibility against, or null for no module ... such as when the application accesses an extension via Registry.
Since:
1.1

getLog

public org.apache.commons.logging.Log getLog()
Description copied from interface: ExtensionPoint
Returns the Log instance for this extension point.

Specified by:
getLog in interface ExtensionPoint
Since:
1.1

getErrorLog

public ErrorLog getErrorLog()
Description copied from interface: ExtensionPoint
Returns an ErrorLog used to report any recoverable errors related to the extension point.

Specified by:
getErrorLog in interface ExtensionPoint
Since:
1.1

getDefinition

protected ExtensionPointDefinition getDefinition()


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