Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.ide.model
Class TechnologyRegistry

java.lang.Object
  extended by oracle.ide.model.TechnologyRegistry


public final class TechnologyRegistry
extends java.lang.Object

The TechnologyRegistry is used to create and look up technologies in the system.


Method Summary
 boolean containsTechKey(java.lang.String key)
          Returns if the tech keys is known to the technology registry.
 TechId[] getAllTechIds()
          Returns all registered technologies.
 TechId[] getDependenciesFor(TechId techId)
          Returns all of the registered technologies upon which the specified technology depends, either directly or indirectly.
 TechId[] getDependentsFor(TechId techId)
          Returns all of the registered technologies that depend, either directly or indirectly, on the specified technology.
static TechnologyRegistry getInstance()
          Returns an instance of the technology registry.
static java.util.logging.Logger getLogger()
          Getter for the logger instance.
 java.util.Collection<java.lang.String> getOwningExtensionIds(java.util.Collection<java.lang.String> technologyKeys)
           
 java.lang.String[] getOwningExtensionIds(TechId... techIds)
           
 TechId getTechId(java.lang.String key)
          Looks up a registered technology given the technology key.
 java.util.Collection<java.lang.String> getTechnologiesOfExtension(java.lang.String extensionId)
          Given an extension id, finds the set of technologies defined in the given extension.
 java.util.Collection<java.lang.String> getTechnologiesOfExtensionByClassLoader(java.lang.ClassLoader loader)
           
 java.util.Collection<java.lang.String> getTechnologiesOfExtensionGroup(java.lang.String extensionGroupId)
          Finds a set of technology scope ids, that were defined in the given extension group.
 java.util.Collection<java.lang.String> getTechnologiesOfFeature(Feature feature)
           
 java.util.Collection<java.lang.String> getTechnologiesOfGroupByMemberExtension(java.util.Collection<java.lang.String> extensionIds)
          Gets all technologies of all groups of the extensions passed in.
 TechId[] getVisibleTechIds()
          Returns all visible registered technologies.
 void initializeOwningExtensions(TechnologyScope techScope)
          Initializes the extension owners for the technologies in the supplied TechnologyScope.
 void registerPseudoTechnology(java.lang.String key, PseudoTechnologyCallback callback)
          Deprecated. Use #registerPseudoTechnology(String key, String extensionId, PseudoTechnologyCallback callback)
 void registerPseudoTechnology(java.lang.String key, java.lang.String extensionId, PseudoTechnologyCallback callback)
          Registers a pseudo-technology with the technology registry.
 void registerTechnology(java.lang.String key, java.lang.String name, java.lang.String description)
          Deprecated. Use registerTechnology(String, String, String, String). Since 11.1.2.0.0.
 void registerTechnology(java.lang.String key, java.lang.String name, java.lang.String description, java.lang.String extensionId)
          Registers a top-level technology with the technology registry.
 void registerTechnology(java.lang.String key, java.lang.String name, java.lang.String description, java.lang.String extensionId, boolean obsolete)
          Registers a top-level technology with the technology registry.
 void registerTechnology(java.lang.String key, java.lang.String name, java.lang.String description, java.lang.String extensionId, boolean obsolete, TechId[] dependencies)
          Registers a dependent technology with the technology registry.
 void registerTechnology(java.lang.String key, java.lang.String name, java.lang.String description, java.lang.String extensionId, TechId parent)
          Registers a child technology with the technology registry.
 void registerTechnology(java.lang.String key, java.lang.String name, java.lang.String description, java.lang.String extensionId, TechId[] dependencies)
          Registers a dependent technology with the technology registry.
 void registerTechnology(java.lang.String key, java.lang.String name, java.lang.String description, TechId parent)
          Deprecated. Use registerTechnology(String, String, String, String, TechId). Since 11.1.2.0.0.
 void registerTechnology(java.lang.String key, java.lang.String name, java.lang.String description, TechId[] dependencies)
          Deprecated. Use registerTechnology(String, String, String, String, TechId[]). Since 11.1.2.0.0.
 void unregisterTechnology(java.lang.String key)
          Unregisters a technology from the technology registry.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getInstance

public static TechnologyRegistry getInstance()
Returns an instance of the technology registry.

getLogger

public static java.util.logging.Logger getLogger()
Getter for the logger instance.
Returns:
the logger instance

registerTechnology

@Deprecated
public void registerTechnology(java.lang.String key,
                                          java.lang.String name,
                                          java.lang.String description)
Deprecated. Use registerTechnology(String, String, String, String). Since 11.1.2.0.0.

registerTechnology

@Deprecated
public void registerTechnology(java.lang.String key,
                                          java.lang.String name,
                                          java.lang.String description,
                                          TechId parent)
Deprecated. Use registerTechnology(String, String, String, String, TechId). Since 11.1.2.0.0.

registerTechnology

@Deprecated
public void registerTechnology(java.lang.String key,
                                          java.lang.String name,
                                          java.lang.String description,
                                          TechId[] dependencies)
Deprecated. Use registerTechnology(String, String, String, String, TechId[]). Since 11.1.2.0.0.

registerPseudoTechnology

@Deprecated
public void registerPseudoTechnology(java.lang.String key,
                                                PseudoTechnologyCallback callback)
Deprecated. Use #registerPseudoTechnology(String key, String extensionId, PseudoTechnologyCallback callback)

registerTechnology

public void registerTechnology(java.lang.String key,
                               java.lang.String name,
                               java.lang.String description,
                               java.lang.String extensionId)
Registers a top-level technology with the technology registry.
Parameters:
key - a well-defined string that identifies the technology programmatically; the key is used to bind items in the gallery to a technology.
name - a translatable string that identifies the technology in the user interface.
description - a translatable string that describes the purpose of the technology in the user interface.
extensionId - the id of the owning extension

registerTechnology

public void registerTechnology(java.lang.String key,
                               java.lang.String name,
                               java.lang.String description,
                               java.lang.String extensionId,
                               boolean obsolete)
Registers a top-level technology with the technology registry.
Parameters:
key - a well-defined string that identifies the technology programmatically; the key is used to bind items in the gallery to a technology.
name - a translatable string that identifies the technology in the user interface.
description - a translatable string that describes the purpose of the technology in the user interface.
extensionId - the id of the owning extension

registerTechnology

public void registerTechnology(java.lang.String key,
                               java.lang.String name,
                               java.lang.String description,
                               java.lang.String extensionId,
                               TechId parent)
Registers a child technology with the technology registry.
Parameters:
key - a well-defined string that identifies the technology programmatically; the key is used to bind items in the gallery to a technology.
name - a translatable string that identifies the technology in the user interface.
description - a translatable string that describes the purpose of the technology in the user interface.
extensionId - the id of the owning extension
parent - the parent technology.

registerTechnology

public void registerTechnology(java.lang.String key,
                               java.lang.String name,
                               java.lang.String description,
                               java.lang.String extensionId,
                               TechId[] dependencies)
Registers a dependent technology with the technology registry.
Parameters:
key - a well-defined string that identifies the technology programmatically; the key is used to bind items in the gallery to a technology.
name - a translatable string that identifies the technology in the user interface.
description - a translatable string that describes the purpose of the technology in the user interface.
dependencies - the technologies upon which the registered technology depends.

registerTechnology

public void registerTechnology(java.lang.String key,
                               java.lang.String name,
                               java.lang.String description,
                               java.lang.String extensionId,
                               boolean obsolete,
                               TechId[] dependencies)
Registers a dependent technology with the technology registry.
Parameters:
key - a well-defined string that identifies the technology programmatically; the key is used to bind items in the gallery to a technology.
name - a translatable string that identifies the technology in the user interface.
description - a translatable string that describes the purpose of the technology in the user interface.
dependencies - the technologies upon which the registered technology depends.

getTechnologiesOfFeature

public java.util.Collection<java.lang.String> getTechnologiesOfFeature(Feature feature)

getTechnologiesOfExtensionGroup

public java.util.Collection<java.lang.String> getTechnologiesOfExtensionGroup(java.lang.String extensionGroupId)
Finds a set of technology scope ids, that were defined in the given extension group.
Parameters:
extensionGroupId, - the group id of an extension group
Returns:
the set of all extension groups that are defined in the all extensions of the extension group.

getTechnologiesOfExtension

public java.util.Collection<java.lang.String> getTechnologiesOfExtension(java.lang.String extensionId)
Given an extension id, finds the set of technologies defined in the given extension.
Parameters:
extensionId, - the extension id
Returns:
a set of technology keys defined in the extension

registerPseudoTechnology

public void registerPseudoTechnology(java.lang.String key,
                                     java.lang.String extensionId,
                                     PseudoTechnologyCallback callback)
Registers a pseudo-technology with the technology registry. Pseudo-technologies are not visible in the user interface. After registering the technology, you must register its owner.
Parameters:
key - a well-defined string that identifies the technology programmatically; the key is used to bind items in the gallery to a technology.
extensionId - the id of the owning extension
callback - the callback object used to determine the visibility of gallery items tagged with the specified technology key.
Since:
11.1.2.0.0
See Also:
PseudoTechnologyCallback

unregisterTechnology

public void unregisterTechnology(java.lang.String key)
Unregisters a technology from the technology registry. The technology is only removed from the registry after all clients have unregistered the technology.
Parameters:
key - a string that identifies a technology.

getTechId

public TechId getTechId(java.lang.String key)
Looks up a registered technology given the technology key.
Parameters:
key - a string that identifies a technology.
Returns:
the TechId for the specified technology, or null if no technology is registered with the specified identifier.

containsTechKey

public boolean containsTechKey(java.lang.String key)
Returns if the tech keys is known to the technology registry. Unless the product is run in default role, where all extensions are available, returning false means that the role is not available in the present role, but might be avilable in the installation.
Parameters:
key - the tech key
Returns:
if the tech key is known

getAllTechIds

public TechId[] getAllTechIds()
Returns all registered technologies.
Returns:
an array of TechId instances comprising all registered technologies.

getVisibleTechIds

public TechId[] getVisibleTechIds()
Returns all visible registered technologies.
Returns:
an array of TechId instances comprising those registered technologies that are visible.

getDependenciesFor

public TechId[] getDependenciesFor(TechId techId)
Returns all of the registered technologies upon which the specified technology depends, either directly or indirectly.
Returns:
an array containing all the technologies upon which the specified technology depends.

getDependentsFor

public TechId[] getDependentsFor(TechId techId)
Returns all of the registered technologies that depend, either directly or indirectly, on the specified technology.
Returns:
an array containing all the technologies that depend on the specified technology.

getOwningExtensionIds

public java.lang.String[] getOwningExtensionIds(TechId... techIds)

getOwningExtensionIds

public java.util.Collection<java.lang.String> getOwningExtensionIds(java.util.Collection<java.lang.String> technologyKeys)

initializeOwningExtensions

public void initializeOwningExtensions(TechnologyScope techScope)
Initializes the extension owners for the technologies in the supplied TechnologyScope.
Parameters:
techScope - a non-null TechnologyScope

getTechnologiesOfExtensionByClassLoader

public java.util.Collection<java.lang.String> getTechnologiesOfExtensionByClassLoader(java.lang.ClassLoader loader)

getTechnologiesOfGroupByMemberExtension

public java.util.Collection<java.lang.String> getTechnologiesOfGroupByMemberExtension(java.util.Collection<java.lang.String> extensionIds)
Gets all technologies of all groups of the extensions passed in. If an extension is not part of a group, return the technologies for the individual extension.
Parameters:
extensionIds - a collection of extension ids.
Returns:
a collection of technology scope ids

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


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