Class ActivateUtils
java.lang.Object
org.apache.axis2.context.externalize.ActivateUtils
Some Externalize objects must be "activated" after they are read.
Activation normally involves associating the object with objects in the current
runtime.
ActivateUtils provides activation related utilities
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectfindHandler(List<Handler> existingHandlers, MetaDataEntry metaDataEntry) Find the Handler object that matches the criteriastatic AxisMessagefindMessage(AxisOperation op, String msgName, String msgElementName) Find the AxisMessage object that matches the criteriastatic AxisOperationfindOperation(AxisService service, String opClassName, QName opQName) Find the AxisOperation object that matches the criteriastatic AxisOperationfindOperation(AxisConfiguration axisConfig, String opClassName, QName opQName) Find the AxisOperation object that matches the criteriastatic AxisServicefindService(AxisConfiguration axisConfig, String serviceClassName, String serviceName) Find the AxisService object that matches the criteriastatic AxisServicefindService(AxisConfiguration axisConfig, String serviceClassName, String serviceName, String extraName) static AxisServiceGroupfindServiceGroup(AxisConfiguration axisConfig, String serviceGrpClassName, String serviceGrpName) Find the AxisServiceGroup object that matches the criteriastatic TransportListenerfindTransportListener(AxisConfiguration axisConfig, String listenerClassName) Find the TransportListener object that matches the criteriastatic StringgetAxisServiceExternalizeExtraName(AxisService axisService) Return a Sring that contains the service QName and port local name of an AxisService seperated by a delimiter.static booleanisEquivalent(ArrayList a1, ArrayList a2, boolean strict) Compares the two collections to see if they are equivalent.static booleanisEquivalent(LinkedList l1, LinkedList l2) Compares the two collections to see if they are equivalent.static booleanisEquivalent(Map m1, Map m2, boolean strict) Compares the two collections to see if they are equivalent.
-
Method Details
-
findServiceGroup
public static AxisServiceGroup findServiceGroup(AxisConfiguration axisConfig, String serviceGrpClassName, String serviceGrpName) Find the AxisServiceGroup object that matches the criteria Note the saved service group meta information may not match up with any of the serviceGroups that are in the current AxisConfiguration object.- Parameters:
axisConfig- The AxisConfiguration objectserviceGrpClassName- the class name string for the target object (could be a derived class)serviceGrpName- the name associated with the service group- Returns:
- the AxisServiceGroup object that matches the criteria
-
findService
public static AxisService findService(AxisConfiguration axisConfig, String serviceClassName, String serviceName) Find the AxisService object that matches the criteria- Parameters:
axisConfig- The AxisConfiguration objectserviceClassName- the class name string for the target object (could be a derived class)serviceName- the name associated with the service- Returns:
- the AxisService object that matches the criteria
-
findService
public static AxisService findService(AxisConfiguration axisConfig, String serviceClassName, String serviceName, String extraName) -
getAxisServiceExternalizeExtraName
Return a Sring that contains the service QName and port local name of an AxisService seperated by a delimiter. This value can be used as part of externalizing an AxisService to provide additional information during deserialization in cases where the AxisService name is not unique or does not match for whatever reasons.- Parameters:
axisService- The AxisService to create the externalized name- Returns:
- a String with the ServiceQName and port local name separated by DELIMITER_SERVICE_PORT if both values exist as parameters on the service; null otherwise.
-
findOperation
public static AxisOperation findOperation(AxisConfiguration axisConfig, String opClassName, QName opQName) Find the AxisOperation object that matches the criteria- Parameters:
axisConfig- The AxisConfiguration objectopClassName- the class name string for the target object (could be a derived class)opQName- the name associated with the operation- Returns:
- the AxisOperation object that matches the given criteria
-
findOperation
Find the AxisOperation object that matches the criteria- Parameters:
service- The AxisService objectopClassName- The class name string for the target object (could be a derived class)opQName- the name associated with the operation- Returns:
- the AxisOperation object that matches the given criteria
-
findMessage
Find the AxisMessage object that matches the criteria- Parameters:
op- The AxisOperation objectmsgName- The name associated with the messagemsgElementName- The name associated with the message element- Returns:
- the AxisMessage object that matches the given criteria
-
findHandler
Find the Handler object that matches the criteria- Parameters:
existingHandlers- The list of existing handlers and phaseshandlerClassName- the class name string for the target object (could be a derived class)- Returns:
- the Handler object that matches the criteria
-
findTransportListener
public static TransportListener findTransportListener(AxisConfiguration axisConfig, String listenerClassName) Find the TransportListener object that matches the criteria Note the saved meta information may not match up with any of the objects that are in the current AxisConfiguration object.- Parameters:
axisConfig- The AxisConfiguration objectlistenerClassName- the class name string for the target object (could be a derived class)- Returns:
- the TransportListener object that matches the criteria
-
isEquivalent
Compares the two collections to see if they are equivalent.- Parameters:
a1- The first collectiona2- The second collectionstrict- Indicates whether strict checking is required. Strict checking means that the two collections must have the same elements in the same order. Non-strict checking means that the two collections must have the same elements, but the order is not significant.- Returns:
- TRUE if the two collections are equivalent FALSE, otherwise
-
isEquivalent
Compares the two collections to see if they are equivalent.- Parameters:
m1- The first collectionm2- The second collectionstrict- Indicates whether strict checking is required. Strict checking means that the two collections must have the same mappings. Non-strict checking means that the two collections must have the same keys. In both cases, the order is not significant.- Returns:
- TRUE if the two collections are equivalent FALSE, otherwise
-
isEquivalent
Compares the two collections to see if they are equivalent.- Parameters:
l1- The first collectionl2- The second collection- Returns:
- TRUE if the two collections are equivalent FALSE, otherwise
-