Package oracle.rules.sdk2.repository
Class RepositoryManager
java.lang.Object
oracle.rules.sdk2.repository.RepositoryManager
To access list of repository types, and get instance of a repository type.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuleRepositorycreateRuleRepositoryInstance(RepositoryType repoType) Create an un-initialized repository instance of the given typestatic RuleRepositorygetMDSRuleRepository(RepositoryContext context) A convenience method to get a RuleRepository instance for an MDS based repository.static RepositoryTypegetRegisteredRepositoryType(String repoTypeKey) Get a RepositoryType by its key namestatic List<RepositoryType>Returns a List of known repository types.
-
Method Details
-
getMDSRuleRepository
public static RuleRepository getMDSRuleRepository(RepositoryContext context) throws RepositoryException A convenience method to get a RuleRepository instance for an MDS based repository.- Parameters:
context- Contextual information for creating the RuleRepository instance. If may be null if no additional context is required.- Returns:
- a RuleRepository for an MDS based repository.
- Throws:
RepositoryException- if error creating the repository instance
-
getRegisteredRepositoryTypes
Returns a List of known repository types. The list includes MDS by default.- Returns:
- a List of registered repository types. The object in the list
is an instance of
RepositoryType
-
getRegisteredRepositoryType
Get a RepositoryType by its key name- Parameters:
repoTypeKey- key of the repository type- Returns:
- a RepositoryType object with the given key name. Returns null if the repository type is not registered.
-
createRuleRepositoryInstance
public static RuleRepository createRuleRepositoryInstance(RepositoryType repoType) throws RepositoryException Create an un-initialized repository instance of the given type- Parameters:
repoType- the type of the repository instance- Returns:
- an un-initialized RuleRepository object
- Throws:
RepositoryException- if error when creating the repository instance
-