Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1)

E10686-04

oracle.adf.share.jsp
Class ADFLibUtils

java.lang.Object
  extended by oracle.adf.share.jsp.ADFLibUtils

public class ADFLibUtils
extends java.lang.Object


Field Summary
protected  javax.servlet.ServletContext _sc
           
static java.lang.String OVERRIDE_CLASS_NAME
           
 
Constructor Summary
protected ADFLibUtils(javax.servlet.ServletContext sc)
           
 
Method Summary
 java.lang.ClassLoader getADFLibraryLoader()
          Return the single class loader initialized for the servlet context.
 java.net.URL[] getADFLibraryURLs()
           
 java.net.URL[] getADFLibraryURLs(java.lang.ClassLoader lookup)
           
static ADFLibUtils getInstance(javax.servlet.ServletContext sc)
          Normal webapp lifecycle would automatically take care of the setup, otherwise, the caller can specify an OVERRIDE_CLASS_NAME in the passed in ServletContext instance (an extends of this class) which would be instanciated and a reference to it held in the ServletContext and returned on subsequent calls to this method.
protected  void setADFLibraryLoader(java.lang.ClassLoader loader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OVERRIDE_CLASS_NAME

public static final java.lang.String OVERRIDE_CLASS_NAME

_sc

protected volatile javax.servlet.ServletContext _sc
Constructor Detail

ADFLibUtils

protected ADFLibUtils(javax.servlet.ServletContext sc)
Method Detail

getInstance

public static ADFLibUtils getInstance(javax.servlet.ServletContext sc)
Normal webapp lifecycle would automatically take care of the setup, otherwise, the caller can specify an OVERRIDE_CLASS_NAME in the passed in ServletContext instance (an extends of this class) which would be instanciated and a reference to it held in the ServletContext and returned on subsequent calls to this method. If the callers environment doesn't have a ServletContext then the caller is expected to cache the returned instance as appropriate. Note: There is no need to be thread-safe here because the standard setup is done by the LibraryFilter init... If this is not the case then the caller is expected to already have this taken care of...

Parameters:
sc - ServletContext or null
Returns:
an instance of ADFLibUtils appropriate for the caller's env

getADFLibraryLoader

public java.lang.ClassLoader getADFLibraryLoader()
Return the single class loader initialized for the servlet context. This is set after all providers have been initialized therefore it is null during the init callback. Do not cache it locally, unless you also remove the reference in your destroy method. It is a lightweight call and could be called whenever it's needed.

Returns:
the ADF Library jar only loader

setADFLibraryLoader

protected void setADFLibraryLoader(java.lang.ClassLoader loader)

getADFLibraryURLs

public java.net.URL[] getADFLibraryURLs()
                                 throws java.io.IOException
Throws:
java.io.IOException

getADFLibraryURLs

public java.net.URL[] getADFLibraryURLs(java.lang.ClassLoader lookup)
                                 throws java.io.IOException
Throws:
java.io.IOException

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1)

E10686-04

Copyright © 1997, 2010, Oracle. All rights reserved.