Package com.webmethods.portal.system
Class ComponentUtil
java.lang.Object
com.webmethods.portal.system.ComponentUtil
Some helper methods when working with
IComponent
objects-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
constructComponentKey
(IComponent component) Taking a default component construct a keystatic String
constructComponentKey
(String name, String type) Constructs a key from the name and the type.static String
constructComponentKey
(Map<?, ?> properties) Constructs the handler key name based on the information in the given handler configuration element.static String
constructComponentKey
(Element configElem) Constructs the handler key name based on the information in the given handler configuration element.static String
getComponentClassName
(Element configElem) Returns component class name as specified in the configuration XML Element
-
Constructor Details
-
ComponentUtil
public ComponentUtil()
-
-
Method Details
-
constructComponentKey
Constructs a key from the name and the type. Internally to prevent name collisions in the handler table for a component provider we might key off of both the name and the type. This method determines that key.- Parameters:
name
- the value of the name attributetype
- the value of the type attribute, or null if not available- Returns:
- a key that represents the name and type for locating the
IComponent
in the table
-
constructComponentKey
Constructs the handler key name based on the information in the given handler configuration element.- Parameters:
configElem
- the configuration element associated with the handler- Returns:
- a key that represents the data
- See Also:
-
getComponentClassName
Returns component class name as specified in the configuration XML Element- Parameters:
configElem
- source Element with component configuration- Returns:
-
constructComponentKey
Constructs the handler key name based on the information in the given handler configuration element.- Parameters:
properties
- the configuration associated with the handler- Returns:
- a key that represents the data
- See Also:
-
constructComponentKey
Taking a default component construct a key- Parameters:
component
-- Returns:
-