public interface ContextFactory
Modifier and Type | Method and Description |
---|---|
JpsContext |
getContext()
Returns the default JpsContext
The 'default' context is determined as follows: 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 |
JpsContext getContext() throws JpsException
The 'default' context is determined as follows:
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
JpsException
- if an error condition is encountered during the invocation of this methodJpsContext getContext(java.lang.String name) throws JpsException
The search order is the same as in getContext():
name
- name of the JpsContext to be looked upJpsException
- if an error condition is encountered during the invocation of this methodContextFactory.getContext()