Class JAXBUtilsMonitor
java.lang.Object
org.apache.axis2.jaxws.message.databinding.JAXBUtilsMonitor
The monitor is used by the tests to ensure
that the JAXBUtils code is used and is functioning correctly.
In normal usage, monitoring is off.
Currently the JAXBUtilsMonitor keeps track of the packageKeys
passed to createJAXBContext(*). Future improvements may monitor
the size of the pools, the pool hits versus misses, etc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPackageKey(String packageKey) Add PackageKeystatic voidclear()Clear the number of creates and failed createsstatic booleanstatic voidsetMonitoring(boolean monitoring) Set monitoring
-
Method Details
-
isMonitoring
public static boolean isMonitoring()- Returns:
- true if monitoring
-
setMonitoring
public static void setMonitoring(boolean monitoring) Set monitoring- Parameters:
monitoring- boolean
-
clear
public static void clear()Clear the number of creates and failed creates -
getPackageKeys
- Returns:
- package keys
-
addPackageKey
Add PackageKey
-