public WSMonitorLifeCycleProvider | getWSMonitorLifeCycleProvider()Returns the WSLifeCycleProvider instance. If
-Dwsmgmt.lifecycle.provider.classname is defined,that class is loaded and
returned as the WSLifeCycle provider. If there is an error finding or
loading the class, the default provider class is returned.
String implName = System.getProperty(WSMGMT_PROVIDER_NAME);
if ( implName == null ) {
Class repClass = Class.forName(WSMGMT_DEFAULT_PROVIDER);
Object o = repClass.newInstance();
return (WSMonitorLifeCycleProvider)o;
} else {
Class repClass = Class.forName(implName);
Object o = repClass.newInstance();
return (WSMonitorLifeCycleProvider)o;
}
|