|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.library.JLibraryManager
public final class JLibraryManager
Field Summary | |
---|---|
static java.lang.String |
JDK_EXTENSION
|
static java.lang.String |
LEGACY_LIBRARY_FILE
Deprecated. library.ini format no longer supported. |
static int |
LIBRARY_ADDED
|
static java.lang.String |
LIBRARY_EXTENSION
|
static java.lang.String |
LIBRARY_LIST_FILE
|
static int |
LIBRARY_REMOVED
|
static java.lang.String |
SETTINGS_KEY
|
Constructor Summary | |
---|---|
JLibraryManager()
|
Method Summary | |
---|---|
void |
addLibraryChangeListener(ProjectLibraryChangeListener libraryChangeListener)
|
static JLibraryList |
addLibraryList(java.net.URL url)
|
void |
attach(Observer observer)
Registers an observer interested in being notified when the internal state of the class implementing the Subject interface
changes. |
boolean |
canShutdown()
This method is called by the IDE to confirm that the ide can shutdown. |
Dependable |
create(Element source,
Folder sourceOwner)
Creates a Dependable that encapsulates the source object. |
static JDK |
createJDK(java.lang.Object id,
java.net.URL javaExe,
MutableLibraryList list)
|
static JLibrary |
createLibrary(java.lang.Object id,
MutableLibraryList list)
|
void |
detach(Observer observer)
Unregisters an observer that is not interested anymore in being notified when the internal state of the class implementing the Subject
interface changes. |
static JDK |
findJDK(java.lang.Object id)
|
static JDK |
findJDK(VersionNumber num,
JDK[] jdks)
|
static JDK |
findJDKMatch(java.lang.Object id,
VersionNumber num)
|
static JLibrary |
findLibrary(java.lang.Object id)
|
static AddinLibraryList |
getAddinLibraries()
|
static LibraryList[] |
getAllLibraryLists()
Returns all lists last preserved as the working set. |
static JDK |
getDefaultJDK()
|
java.util.Collection<DynamicLibraryProvider> |
getDynamicLibraryProviders()
Returns an (immutable) collection of all registered dynamic library providers. |
static JLibraryManager |
getInstance()
Retrieves the single JLibraryManager instance. |
static java.util.List |
getJDKs()
Deprecated. Concept of finite library lists from which to gather JDKs no longer exists. Now returns only what can be found within the last working set of library lists. |
static java.util.List |
getLibraries()
Deprecated. Concept of finite library lists from which to gather libraries no longer exists. Now returns only what can be found within the last working set of library lists. |
static JLibraryList |
getUserLibraries()
|
void |
initialize()
Invoked by the AddinManager after the instance of the
Addin is instantiated. |
void |
notifyObservers(java.lang.Object subject,
UpdateMessage change)
Notifies all observers that the state of the subject has changed. |
void |
projectLibrariesChanged(Project project,
java.util.Set<java.net.URL> modifiedJars,
java.util.Set<java.net.URL> addedJars,
java.util.Set<java.net.URL> deletedJars)
|
boolean |
recognize(Element source)
Returns true if this dependable factory recognizes the
specified source object. |
static void |
registerDerivedLibrary(java.lang.Class key,
java.lang.Class cls)
Call this method to register a DerivedLibrary class. |
void |
registerDynamicLibraryProvider(DynamicLibraryProvider provider)
Registers a dynamic library provider with the library manager. |
static void |
removeJDK(JDK jdk,
MutableLibraryList list)
|
static void |
removeLibrary(JLibrary lib,
MutableLibraryList list)
|
void |
removeLibraryChangeListener(ProjectLibraryChangeListener libraryChangeListener)
|
static boolean |
removeLibraryList(LibraryList list)
|
void |
shutdown()
Called on all shutdown hooks in the order they were registered when the IDE is terminating. |
static void |
unregisterDerivedLibrary(java.lang.Class key)
|
void |
unregisterDynamicLibraryProvider(DynamicLibraryProvider provider)
Unregisters a dynamic library provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LEGACY_LIBRARY_FILE
public static final java.lang.String LIBRARY_LIST_FILE
public static final java.lang.String LIBRARY_EXTENSION
public static final java.lang.String JDK_EXTENSION
public static final int LIBRARY_ADDED
public static final int LIBRARY_REMOVED
public static final java.lang.String SETTINGS_KEY
Constructor Detail |
---|
public JLibraryManager() throws SingletonClassException
SingletonClassException
Method Detail |
---|
public void registerDynamicLibraryProvider(DynamicLibraryProvider provider)
provider
- the provider to register. Must not be null.
java.lang.NullPointerException
- if the provider argument is null.public void unregisterDynamicLibraryProvider(DynamicLibraryProvider provider)
provider
- the provider to unregister.public java.util.Collection<DynamicLibraryProvider> getDynamicLibraryProviders()
DynamicLibraryProvider
s.public static JLibraryManager getInstance()
JLibraryManager
instance.public static LibraryList[] getAllLibraryLists()
public static java.util.List getLibraries()
getAllLibraryLists()
public static java.util.List getJDKs()
getAllLibraryLists()
public static JDK getDefaultJDK()
public static JLibrary createLibrary(java.lang.Object id, MutableLibraryList list)
public static JLibrary findLibrary(java.lang.Object id)
public static void removeLibrary(JLibrary lib, MutableLibraryList list)
public static JDK createJDK(java.lang.Object id, java.net.URL javaExe, MutableLibraryList list)
public static JDK findJDK(java.lang.Object id)
public static JDK findJDK(VersionNumber num, JDK[] jdks)
public static JDK findJDKMatch(java.lang.Object id, VersionNumber num)
public static void removeJDK(JDK jdk, MutableLibraryList list)
public static JLibraryList addLibraryList(java.net.URL url)
public static boolean removeLibraryList(LibraryList list)
public static JLibraryList getUserLibraries()
public static AddinLibraryList getAddinLibraries()
public Dependable create(Element source, Folder sourceOwner) throws java.lang.IllegalAccessException, java.lang.InstantiationException
DependableRecognizer
Dependable
that encapsulates the source object.
The owner
is the folder containing the source.
create
in interface DependableRecognizer
java.lang.IllegalAccessException
java.lang.InstantiationException
public boolean recognize(Element source)
DependableRecognizer
true
if this dependable factory recognizes the
specified source
object.
recognize
in interface DependableRecognizer
public static void registerDerivedLibrary(java.lang.Class key, java.lang.Class cls)
DerivedLibrary
class. The key
should be the source node class. Registered Dependable classes
will be recognized by this DependableRecognizer
.
public static void unregisterDerivedLibrary(java.lang.Class key)
public void shutdown()
ShutdownHook
shutdown
in interface ShutdownHook
public boolean canShutdown()
canShutdown
in interface ShutdownHook
public void initialize()
Addin
AddinManager
after the instance of the
Addin
is instantiated. When invoked, The Addin
should register and menu items, and actions required for use during this
classes lifecycle. Addin
authors should take care to ensure
that any extraneous initialization is not preformed on this method, and
any startup code that can be delayed until a later time is delayed, as
the Addin
's are synchronously initialized during the
startup of the IDE, and each Addin
has the potential to
negatively impact the startup time of the product.
initialize
in interface Addin
AddinManager
public void attach(Observer observer)
Subject
Subject
interface
changes.
Implementors should do nothing when the same observer is added more
than once.
attach
in interface Subject
observer
- the Observer
interested in change notification
messages.public void detach(Observer observer)
Subject
Subject
interface changes.
Implementors should do nothing when the same observer is removed more
than once.
detach
in interface Subject
observer
- the Observer
disinterested in change
notification messages.public void notifyObservers(java.lang.Object subject, UpdateMessage change)
Subject
notifyObservers
in interface Subject
subject
- the subject whose state has changed.change
- what changed.public void addLibraryChangeListener(ProjectLibraryChangeListener libraryChangeListener)
public void removeLibraryChangeListener(ProjectLibraryChangeListener libraryChangeListener)
public void projectLibrariesChanged(Project project, java.util.Set<java.net.URL> modifiedJars, java.util.Set<java.net.URL> addedJars, java.util.Set<java.net.URL> deletedJars)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |