Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 1 (11.1.1)

E22649-02 ESAPI


oracle.security.jps
Interface ContextFactory

All Known Implementing Classes:
JpsContextFactory

public interface ContextFactory

This interface defines methods for retrieval of JpsContext instances.


Method Summary
 JpsContext getContext()
          Returns the default JpsContext

The 'default' context is determined as follows:
if an application-level jps-config.xml exists, return the default JpsContext associated with the application-level jps-config.xml otherwise, return the system-level default JpsContext

In MAS deployments, the system-level default JpsContext corresponds to the farm-level default JpsContext In OC4J standalone deployments (pre-MAS/OC4J integration), the system-level default JpsContext corresponds to the instance-level JpsContext (e.g.

 JpsContext getContext(java.lang.String name)
          Returns the JPS context associated with the specified name

The search order is the same as in getContext(): if an application-level jps-config.xml exists, look for a configured JpsContext with the specified name, and if such a JpsContext exists, it's returned otherwise, look for a configured JpsContext with the specified name in the system-level jps-config.xml return null if no configured JpsContext with the specified name can be found

 

Method Detail

getContext

JpsContext getContext()
                      throws JpsException
Returns the default JpsContext

The 'default' context is determined as follows:

  1. if an application-level jps-config.xml exists, return the default JpsContext associated with the application-level jps-config.xml
  2. otherwise, return the system-level default JpsContext

In MAS deployments, the system-level default JpsContext corresponds to the farm-level default JpsContext In OC4J standalone deployments (pre-MAS/OC4J integration), the system-level default JpsContext corresponds to the instance-level JpsContext (e.g. j2ee/home/config/jps-config.xml for oc4j_extended.zip-based deployments) For J2SE standalone application deployments, the system-level default JpsContext corresponds to the default configuration set via the "oracle.security.jps.config" system property

Returns:
the default JpsContext
Throws:
JpsException - if an error condition is encountered during the invocation of this method

getContext

JpsContext getContext(java.lang.String name)
                      throws JpsException
Returns the JPS context associated with the specified name

The search order is the same as in getContext():

  1. if an application-level jps-config.xml exists, look for a configured JpsContext with the specified name, and if such a JpsContext exists, it's returned
  2. otherwise, look for a configured JpsContext with the specified name in the system-level jps-config.xml
  3. return null if no configured JpsContext with the specified name can be found
Parameters:
name - name of the JpsContext to be looked up
Returns:
the JpsContext associated with the specified name, or null if not found.
Throws:
JpsException - if an error condition is encountered during the invocation of this method
See Also:
ContextFactory.getContext()

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 1 (11.1.1)

E22649-02 ESAPI


Copyright © 2011, Oracle. All rights reserved.