ilog.rules.res.xu.persistence
Class IlrFilePersistence
- java.lang.Object
-
- com.ibm.rules.res.xu.persistence.internal.Persistence
-
- ilog.rules.res.xu.persistence.internal.IlrDAOXUPersistence
-
- ilog.rules.res.xu.persistence.internal.IlrFilePersistenceImpl
-
- ilog.rules.res.xu.persistence.IlrFilePersistence
-
- All Implemented Interfaces:
- ilog.rules.bres.xu.event.IlrRulesetArchiveEventListener, ilog.rules.res.xu.event.internal.IlrXUEventListener, ilog.rules.res.xu.ruleset.internal.IlrRulesetPathSolver, java.io.Serializable, java.util.EventListener
public class IlrFilePersistence extends ilog.rules.res.xu.persistence.internal.IlrFilePersistenceImpl
This is the base class for custom persistence. It is based on the file system ruleset repository. You can use this class to modify the way in which ruleset archives are retrieved.- Since:
- 7.1
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
FILE_PERSISTENCE_PROPERTY_NAME_DIRECTORY
This is the name of the property that specifies what directory the file persistence uses.
-
Constructor Summary
Constructors Constructor and Description IlrFilePersistence()
-
Method Summary
Methods Modifier and Type Method and Description IlrRESRulesetArchive
retrieveRESRulesetArchive(IlrPath canonicalPath)
Gets a ruleset archive from the ruleset repository.void
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the properties of the persistence.-
Methods inherited from class ilog.rules.res.xu.persistence.internal.IlrFilePersistenceImpl
createDataProvider
-
Methods inherited from class ilog.rules.res.xu.persistence.internal.IlrDAOXUPersistence
getManagedXOMClassLoader, retrieveRulesetArchiveProperties, solveCanonicalRulesetPath
-
Methods inherited from class com.ibm.rules.res.xu.persistence.internal.Persistence
changePerformed, destroy, dump, dump, getCanonicalRulesetPath, getDeprecatedRulesetArchiveInformation, getLogger, getProperties, getRESRulesetArchive, getRulesetArchiveInformation, getRulesetArchiveInformation, getRulesetArchiveProperties, retrieveRulesetArchiveInformation, setEventDispatcher, setLogger, setProfiling
-
-
-
-
Field Detail
-
FILE_PERSISTENCE_PROPERTY_NAME_DIRECTORY
public static final java.lang.String FILE_PERSISTENCE_PROPERTY_NAME_DIRECTORY
This is the name of the property that specifies what directory the file persistence uses.- See Also:
- Constant Field Values
-
-
Method Detail
-
retrieveRESRulesetArchive
public IlrRESRulesetArchive retrieveRESRulesetArchive(IlrPath canonicalPath) throws IlrPersistenceException
Gets a ruleset archive from the ruleset repository.The implementation of this method must not implement any kind of caching.
- Overrides:
retrieveRESRulesetArchive
in classilog.rules.res.xu.persistence.internal.IlrDAOXUPersistence
- Since:
- 7.5
- Throws:
IlrPersistenceException
- Thrown to indicate an error when the ruleset archive is retrieved from the ruleset repository.- Parameters:
canonicalPath
- The canonical path of the ruleset.- Returns:
- IlrRulesetArchive The ruleset archive.
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties) throws IlrPersistenceException
Sets the properties of the persistence.You can set these properties in one of three ways: <
- in the
ra.xml
deployment descriptor - in the connection-specific deployment descriptor
- by using the administration console of your application server.
The configuration property name is
persistenceProperties
.Any implementation overriding this method must call the
setProperties(Map)
method.This method is called before the
retrieveRESRulesetArchive(IlrPath)
method only if the XU configuration parameterpersistenceProperties
is defined. This method can be called more than once, for example when the configuration parameterpersistenceProperties
is modified.- Overrides:
setProperties
in classilog.rules.res.xu.persistence.internal.IlrFilePersistenceImpl
- Throws:
IlrPersistenceException
- Thrown to indicate wrong properties.- Parameters:
properties
- The persistence properties.- See Also:
FILE_PERSISTENCE_PROPERTY_NAME_DIRECTORY
- in the
-
-