3.0.1: 2011-11-10

net.sf.basedb.util.gtf
Class GtfValidationFactory

java.lang.Object
  extended by net.sf.basedb.util.gtf.GtfValidationFactory
All Implemented Interfaces:
ActionFactory<GtfValidationAction>

public class GtfValidationFactory
extends Object
implements ActionFactory<GtfValidationAction>

Action factory for creating GTF file validators.

Since:
3.0
Author:
Nicklas
Last modified
$Date: 2011-09-27 14:35:28 +0200 (Tue, 27 Sep 2011) $

Constructor Summary
GtfValidationFactory()
           
 
Method Summary
 GtfValidationAction[] getActions(InvokationContext<? super GtfValidationAction> context)
          This method may be called one or several times for each request.
 boolean prepareContext(InvokationContext<? super GtfValidationAction> context)
          This method is called once for each request/use of an extension and have two purposes: The factory should decide if the extension should be enabled or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GtfValidationFactory

public GtfValidationFactory()
Method Detail

prepareContext

public boolean prepareContext(InvokationContext<? super GtfValidationAction> context)
Description copied from interface: ActionFactory
This method is called once for each request/use of an extension and have two purposes:

Specified by:
prepareContext in interface ActionFactory<GtfValidationAction>
Parameters:
context - The current invokation context
Returns:
TRUE if the extension should be enabled, FALSE if the extension should be disabled

getActions

public GtfValidationAction[] getActions(InvokationContext<? super GtfValidationAction> context)
Description copied from interface: ActionFactory
This method may be called one or several times for each request. This is decided by the extension point. If, for example, the extension point is a pure single-item extension point then this method is probably only called once. If the extension point is a per-item extension point in a list context, then this method may be called once for every item in the list. The context parameter contains all information about the context of the extension point, including the current item, if any.

Specified by:
getActions in interface ActionFactory<GtfValidationAction>
Parameters:
context - The current invokation context
Returns:
An array of actions that should be added to the extension point. Returns null or an empty array if there are no actions in the current context.

3.0.1: 2011-11-10