BEA Systems, Inc.

com.beasys.commerce.axiom.reasoning.rules.util
Interface Loader

All Known Implementing Classes:
FileLoader, LoaderContainer

public interface Loader

Specifies the behavior for a loader


Method Summary
 void cleanup()
          Cleans up the loader
 long getNumberOfFailedItems()
          Gets the number of items which failed to load
 long getNumberOfItemsLoaded()
          Gets the number of items loaded
 void initialize()
          Initializes the loader
 void load()
          Loads the items in the loader's load list
 void setResultWriter(ResultWriter resultWriter)
          Sets the result writer
 

Method Detail

cleanup

public void cleanup()
             throws java.lang.Exception
Cleans up the loader
Throws:
java.lang.Exception - thrown if unable to cleanup the loader

getNumberOfFailedItems

public long getNumberOfFailedItems()
Gets the number of items which failed to load
Returns:
the number of items which failed to load

getNumberOfItemsLoaded

public long getNumberOfItemsLoaded()
Gets the number of items loaded
Returns:
The number of items loaded

initialize

public void initialize()
                throws java.lang.Exception
Initializes the loader
Throws:
java.lang.Exception - thrown if unable to initialize the loader

load

public void load()
          throws java.lang.Exception
Loads the items in the loader's load list
Throws:
java.lang.Exception - thrown if unable to load

setResultWriter

public void setResultWriter(ResultWriter resultWriter)
                     throws java.lang.Exception
Sets the result writer
Parameters:
resultWriter - The result writer
Throws:
java.lang.IllegalArgumentException - Thrown if resultWriter is null

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved