|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.webapp.libraries.TagLibraryManager<T>
T
- concrete tag library implementationpublic abstract class TagLibraryManager<T extends TagLibrary>
Common abstract library manager refactored from JspLibraryManager for sharing
with the facelet library manager.
Restrictions imposed by the library manager:
Nested Class Summary | |
---|---|
static class |
TagLibraryManager.RegistrationInfo
Structure to store registration info about tag libraries |
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,oracle.jdevimpl.webapp.taglib.libraries.model.TagLibraryHistoryItem<T>> |
history
|
Constructor Summary | |
---|---|
TagLibraryManager()
|
Method Summary | |
---|---|
static void |
activateLibraries(TagLibrary[] libraries)
Activates extensions for all the libraries specified. |
static void |
activateLibrary(TagLibrary library)
Activate library extension and extension dependencies |
static TagLibraryManager.RegistrationInfo |
addActivatableLibrary(TagLibrary library,
java.lang.String extensionId)
Add an activatable library entry. |
static TagLibraryManager.RegistrationInfo |
addActivatableLibrary(java.net.URL taglibUrl,
java.lang.String extensionId)
Add an activatable library entry. |
T |
addLibrary(T library)
Add a T to the current model. |
T |
addLibrary(T library,
boolean isUserLibrary)
Adds library and marks it (non)editable for user via GUI. |
protected T |
addLibrary(T library,
boolean isEditable,
boolean notifyListeners)
|
static void |
addRegistrationInfo(java.util.Collection<TagLibrary> libList,
java.lang.String extensionId,
oracle.jdeveloper.webapp.libraries.TagLibraryManager.RegistrationInfo.Type regInfoType)
Add registration info for the list of libraries specified. |
void |
addTagLibraryListener(TagLibraryListener listener)
Add a listener to the library manager. |
void |
addTagLibraryURLClassesProvider(TagLibraryURLClassesProvider<T> urlProvider)
|
boolean |
containsLibrary(T library)
Checks if library instance is already added to the manager. |
void |
copyTo(TagLibraryManager<T> target)
|
java.util.Collection<T> |
getAllLibraries()
Return all installed Tag Libraries. |
TagLibraryManager<T> |
getCopy()
|
T |
getFirstLibraryFromPrefix(java.lang.String prefix)
Finds a T that has preffered prefix equal to the given prefix. |
protected oracle.jdevimpl.webapp.taglib.libraries.model.TagLibraryHistoryItem<T>[] |
getHistory()
|
java.util.Collection<T> |
getLatestLibraryVersions()
Return latest versions of all installed Tag Libraries. |
java.util.Collection<T> |
getLibraries(java.lang.String libraryName)
Return all versions of the installed Tag Libraries with a given name. |
java.util.Collection<T> |
getLibrariesFromPrefix(java.lang.String prefix)
Returns all libraries that have given preffered prefix. |
java.util.Collection<T> |
getLibrariesFromURI(java.lang.String uri)
Finds all versions of the library with the given URI. |
protected java.util.Collection<T> |
getLibrariesToSave()
|
T |
getLibrary(java.lang.String libraryName)
Return latest versions of the installed Tag Libraries with a given name. |
T |
getLibrary(java.lang.String libraryName,
java.lang.String version)
Finds specified version of the installed Tag Library with a given name. |
protected abstract java.net.URL |
getLibraryFileLocation()
|
T |
getLibraryFromURI(java.lang.String uri)
Finds a latest version of the library with the given URI. |
T |
getLibraryFromURI(java.lang.String uri,
java.lang.String version)
Finds a given version of the library with the given URI. |
static java.lang.String |
getOwnerExtensionId(TagLibrary tagLibrary)
Returns owning extension id of the tag library |
java.util.Collection<T> |
getPackagedLibraries(java.net.URL archiveURL)
Returns all tag libraries registered with the manager that are packaged in the given archive. |
java.lang.String |
getPrefixFromURI(java.lang.String uri)
Given a tag library URI returns preffered prefix for its latest version. |
static TagLibraryManager.RegistrationInfo |
getRegistrationInfo(TagLibrary tagLibrary)
Returns RegistrationInfo structure that contains info about the extensions that registered various aspects of the tag library. |
protected abstract TagLibraryManager<T> |
getSingletonInstance()
|
java.util.Collection<TagLibraryURLClassesProvider<T>> |
getTagLibraryURLClassesProviders()
|
T |
getUnpackagedLibrary(java.net.URL taglibURL)
|
MutableLibraryList |
getUserLibraries()
|
protected abstract void |
initFromHistoryFile()
Loads from history file in the extension System Directory |
protected void |
initLibrariesHistory()
|
boolean |
isEditable(T library)
|
protected void |
loadAllLibraries()
Fire lazy loading. |
protected abstract void |
loadExtensionLibraries()
|
protected abstract void |
loadExtensionLibrariesExtraInfo()
|
protected abstract void |
loadMigratedLibraries()
|
protected abstract void |
loadTagLibraryURLClassesProviders()
Do whatever is necessary to load the URL providers. |
protected abstract TagLibraryManager<T> |
newInstance()
|
protected abstract T |
newTagLibrary(T library)
|
protected abstract TagLibraryChangeEvent<T> |
newTagLibraryChangeEvent(java.lang.Object source,
T library,
int event)
|
protected abstract TagLibraryChangeEvent<T> |
newTagLibraryChangeEvent(java.lang.Object source,
T library,
java.util.List events)
|
protected abstract java.util.Comparator<T> |
newTagLibraryNameComparator()
|
protected abstract java.util.Comparator<T> |
newTagLibraryUriComparator()
|
void |
notifyObservers(T library,
java.util.List changes)
If library is changed in a way that it colides with others it will be removed. |
void |
notifyObservers(T library,
oracle.bali.xml.share.PropertyChange change)
If library is changed in a way that it colides with others it will be removed. |
void |
removeLibrary(java.lang.String uri)
Remove a latest version of the tag library with giver URI. |
boolean |
removeLibrary(T library)
Remove a T from the current model. |
void |
removeTagLibraryListener(TagLibraryListener listener)
Remove a listener from the library manager. |
void |
removeTagLibraryURLClassesProvider(TagLibraryURLClassesProvider<T> urlProvider)
|
protected abstract void |
saveToFile()
|
protected abstract void |
saveToHistory(T library)
|
void |
setUserLibraries(MutableLibraryList userLibs)
|
protected abstract boolean |
validateTaglibURL(T library)
Checks that taglibURL points to the taglib file located or packaged in a way that it can work with the JSP/Facelet version library says it is compatible with. |
protected abstract boolean |
validateURI(T library)
Checks that if libraries URI is already mapped the library name is same, and that if the URI is a resource path to the Taglib file (i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.String,oracle.jdevimpl.webapp.taglib.libraries.model.TagLibraryHistoryItem<T extends TagLibrary>> history
Constructor Detail |
---|
public TagLibraryManager()
Method Detail |
---|
public java.util.Collection<TagLibraryURLClassesProvider<T>> getTagLibraryURLClassesProviders()
public void addTagLibraryURLClassesProvider(TagLibraryURLClassesProvider<T> urlProvider)
public void removeTagLibraryURLClassesProvider(TagLibraryURLClassesProvider<T> urlProvider)
public java.util.Collection<T> getAllLibraries()
public java.util.Collection<T> getLibrariesFromURI(java.lang.String uri)
uri
-
public boolean containsLibrary(T library)
public java.util.Collection<T> getLibrariesFromPrefix(java.lang.String prefix)
prefix
- Prefix of tag library.public java.lang.String getPrefixFromURI(java.lang.String uri)
uri
-
public void setUserLibraries(MutableLibraryList userLibs)
public void addTagLibraryListener(TagLibraryListener listener)
listener
- the listener to add.public java.util.Collection<T> getPackagedLibraries(java.net.URL archiveURL)
archiveURL
- URL of the archive filepublic T getLibraryFromURI(java.lang.String uri)
uri
-
public TagLibraryManager<T> getCopy()
public java.util.Collection<T> getLibraries(java.lang.String libraryName)
public java.util.Collection<T> getLatestLibraryVersions()
public void removeLibrary(java.lang.String uri)
uri
- URI of the tag library.public boolean removeLibrary(T library)
library
- T to remove.
public T getLibraryFromURI(java.lang.String uri, java.lang.String version)
uri
-
public T getUnpackagedLibrary(java.net.URL taglibURL)
public MutableLibraryList getUserLibraries()
public T addLibrary(T library, boolean isUserLibrary)
isUserLibrary
- false is library is added by an extension#addLibrary(T)
public T getFirstLibraryFromPrefix(java.lang.String prefix)
prefix
- Prefix of tag library.public boolean isEditable(T library)
public void notifyObservers(T library, java.util.List changes)
public T getLibrary(java.lang.String libraryName)
libraryName
- public T addLibrary(T library)
library
- T to add.
public void removeTagLibraryListener(TagLibraryListener listener)
listener
- the listener to remove.public void copyTo(TagLibraryManager<T> target)
public static void activateLibraries(TagLibrary[] libraries)
libraries
- list of libraries addedpublic static void activateLibrary(TagLibrary library)
library
- The library whose corresponding extension needs to be activated.public static java.lang.String getOwnerExtensionId(TagLibrary tagLibrary)
tagLibrary
- the tag library cannot be null
public static TagLibraryManager.RegistrationInfo getRegistrationInfo(TagLibrary tagLibrary)
tagLibrary
- tag library
public static TagLibraryManager.RegistrationInfo addActivatableLibrary(TagLibrary library, java.lang.String extensionId)
library
- libraryextensionId
- lib's corresponding extensionpublic static TagLibraryManager.RegistrationInfo addActivatableLibrary(java.net.URL taglibUrl, java.lang.String extensionId)
taglibUrl
- library urlextensionId
- lib's corresponding extension
public static void addRegistrationInfo(java.util.Collection<TagLibrary> libList, java.lang.String extensionId, oracle.jdeveloper.webapp.libraries.TagLibraryManager.RegistrationInfo.Type regInfoType)
libList
- list of librariesextensionId
- module extension idregInfoType
- Info type, one of the constants in RegistrationInfopublic T getLibrary(java.lang.String libraryName, java.lang.String version)
public void notifyObservers(T library, oracle.bali.xml.share.PropertyChange change)
protected oracle.jdevimpl.webapp.taglib.libraries.model.TagLibraryHistoryItem<T>[] getHistory()
protected java.util.Collection<T> getLibrariesToSave()
protected T addLibrary(T library, boolean isEditable, boolean notifyListeners)
protected abstract void initFromHistoryFile()
protected abstract void loadMigratedLibraries()
protected abstract void loadExtensionLibraries()
protected abstract void loadExtensionLibrariesExtraInfo()
protected abstract boolean validateTaglibURL(T library)
protected abstract TagLibraryManager<T> newInstance()
protected abstract TagLibraryManager<T> getSingletonInstance()
protected abstract java.net.URL getLibraryFileLocation()
protected abstract TagLibraryChangeEvent<T> newTagLibraryChangeEvent(java.lang.Object source, T library, java.util.List events)
protected abstract boolean validateURI(T library)
protected abstract TagLibraryChangeEvent<T> newTagLibraryChangeEvent(java.lang.Object source, T library, int event)
protected abstract T newTagLibrary(T library)
protected abstract void saveToFile() throws java.io.IOException
java.io.IOException
protected abstract void saveToHistory(T library)
protected void loadAllLibraries()
protected void initLibrariesHistory()
protected abstract void loadTagLibraryURLClassesProviders()
protected abstract java.util.Comparator<T> newTagLibraryUriComparator()
protected abstract java.util.Comparator<T> newTagLibraryNameComparator()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |