|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.axiom.reasoning.rules.util.FileLoader
Implements a basic file loader
Field Summary | |
static java.lang.String |
MSG_FAILED
The message indicating that an item failed to load |
static java.lang.String |
MSG_LOADED
The message indicating that an item was loaded |
Constructor Summary | |
FileLoader()
Constructor |
Method Summary | |
void |
addItem(java.lang.String itemName,
java.lang.String itemPath)
Adds a file to the list of files to be loaded |
void |
cleanup()
Cleans up the loader |
long |
getNumberOfFailedItems()
Gets the number of items which failed to load |
long |
getNumberOfItemsLoaded()
Gets the number of items that were loaded |
void |
initialize()
Initializes the loader |
void |
load()
Loads files |
void |
setJNDIFactoryName(java.lang.String jndiFactoryName)
Sets the jndi context factory class name |
void |
setJNDIProviderURL(java.lang.String jndiProviderURL)
Sets the jndi provider url |
void |
setJNDISecurityCredentials(java.lang.String jndiSecurityCredentials)
Sets the jndi security credentials |
void |
setJNDISecurityPrincipal(java.lang.String jndiSecurityPrincipal)
Sets the jndi security principal |
void |
setResultWriter(ResultWriter resultWriter)
Sets the result writer |
void |
setRuleSheetDefinitionHomeName(java.lang.String ruleSheetDefinitionHomeName)
Sets the rulesheet definition home name |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String MSG_LOADED
public static final java.lang.String MSG_FAILED
Constructor Detail |
public FileLoader()
Method Detail |
public void addItem(java.lang.String itemName, java.lang.String itemPath) throws java.lang.IllegalArgumentException, java.lang.Exception
itemName
- The name to use when loading the fileitemPath
- The fully qualified path to the file to be loadedpublic void cleanup() throws java.lang.Exception
public long getNumberOfFailedItems()
public long getNumberOfItemsLoaded()
public void initialize() throws java.lang.Exception
public void load()
public void setJNDIFactoryName(java.lang.String jndiFactoryName) throws java.lang.IllegalArgumentException
jndiFactoryName
- The jndi context factory class namepublic void setJNDIProviderURL(java.lang.String jndiProviderURL) throws java.lang.IllegalArgumentException
jndiProviderURL
- The jndi provider urlpublic void setJNDISecurityCredentials(java.lang.String jndiSecurityCredentials) throws java.lang.IllegalArgumentException
jndiSecurityCredentials
- The jndi security credentialspublic void setJNDISecurityPrincipal(java.lang.String jndiSecurityPrincipal) throws java.lang.IllegalArgumentException
jndiSecurityPrincipal
- The jndi security principalpublic void setResultWriter(ResultWriter resultWriter) throws java.lang.Exception
writer
- The result writerpublic void setRuleSheetDefinitionHomeName(java.lang.String ruleSheetDefinitionHomeName) throws java.lang.Exception
ruleSheetDefinitionHomeName
- The name of the home
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |