Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.7)

E10663-11

oracle.rules.sdk2.repository
Class RepositoryManager

java.lang.Object
  extended by oracle.rules.sdk2.repository.RepositoryManager

public final class RepositoryManager
extends java.lang.Object

To access list of repository types, and get instance of a repository type.


Method Summary
static RuleRepository createRuleRepositoryInstance(RepositoryType repoType)
          Create an un-initialized repository instance of the given type
static RuleRepository getMDSRuleRepository(RepositoryContext context)
          A convenience method to get a RuleRepository instance for an MDS based repository.
static RepositoryType getRegisteredRepositoryType(java.lang.String repoTypeKey)
          Get a RepositoryType by its key name
static java.util.List<RepositoryType> getRegisteredRepositoryTypes()
          Returns a List of known repository types.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

public static java.util.List<RepositoryType> 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

public static RepositoryType getRegisteredRepositoryType(java.lang.String repoTypeKey)
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

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.7)

E10663-11

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.