Skip navigation links

Oracle Business Rules Java API Reference
10g (10.1.3.1.0)

B28966-01


oracle.rules.sdk.store
Class RepositoryConnectionFactory

java.lang.Object
  extended byoracle.rules.sdk.store.RepositoryConnectionFactory


public final class RepositoryConnectionFactory
extends java.lang.Object

Factory for creating implementation instances of the Oracle Business Rules RepositoryConnection interface.


Field Summary
static java.lang.String CLASSNAME_PROP
          The value of this property is the fully qualified class name of a class that implements RepositoryConnection.
static java.lang.String PLUGIN_CONFIG
          The path, including the file name, used to locate the properties file that is expected to contain the CLASSNAME_PROP property.

 

Constructor Summary
RepositoryConnectionFactory()
           

 

Method Summary
static java.util.List getRegistrations()
          Returns a List of the known RepositoryConnection registrations.
static RepositoryConnection getRepositoryConnection(java.lang.String key, java.util.Locale locale, java.security.Principal principal, SensitiveDataCallback callback, java.util.Properties properties)
          Gets a repository connection.
static void registerRepositoryConnection(Registration registration)
          Registers a RepositoryConnection implementation.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

PLUGIN_CONFIG

public static final java.lang.String PLUGIN_CONFIG
The path, including the file name, used to locate the properties file that is expected to contain the CLASSNAME_PROP property.
See Also:
Constant Field Values

CLASSNAME_PROP

public static final java.lang.String CLASSNAME_PROP
The value of this property is the fully qualified class name of a class that implements RepositoryConnection.
See Also:
Constant Field Values

Constructor Detail

RepositoryConnectionFactory

public RepositoryConnectionFactory()

Method Detail

registerRepositoryConnection

public static void registerRepositoryConnection(Registration registration)
                                         throws RegistrationException
Registers a RepositoryConnection implementation.
Parameters:
registration - the registration to register
Throws:
RegistrationException - if registration fails.

getRepositoryConnection

public static RepositoryConnection getRepositoryConnection(java.lang.String key,
                                                           java.util.Locale locale,
                                                           java.security.Principal principal,
                                                           SensitiveDataCallback callback,
                                                           java.util.Properties properties)
                                                    throws StoreException
Gets a repository connection. This method instantiates the specified RepositoryConnection implementation and invokes its init method with the principal and properities arguments.
Parameters:
key - the key of the desired RepositoryConnection
principal - the identity to associate with this instance.
locale - the Locale to be used. May be null.
callback - the callback object for retrieving sensitive data
properties - implementation specific initialization data.
Returns:
the RepositoryConnection instance
Throws:
StoreException - if an error is encountered instantiating the RepositoryConnection.

getRegistrations

public static java.util.List getRegistrations()
Returns a List of the known RepositoryConnection registrations.
Returns:
a List of RepositoryConnection registrations

Skip navigation links

Oracle Business Rules Java API Reference
10g (10.1.3.1.0)

B28966-01


Copyright © 2006, Oracle. All rights reserved.