mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
imrpoved heart beat to handle cluster formation changed
This commit is contained in:
parent
21606bc5cd
commit
1d7700ab5c
@ -15,8 +15,9 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package io.entgra.device.mgt.core.server.bootup.heartbeat.beacon.service;
|
||||
package io.entgra.device.mgt.core.device.mgt.core.push.notification.mgt;
|
||||
|
||||
import io.entgra.device.mgt.core.server.bootup.heartbeat.beacon.service.ClusterFormationChangedNotifier;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@ -40,7 +41,7 @@ public class ClusterFormationChangedNotifierRepository {
|
||||
public void addNotifier(String className) {
|
||||
try {
|
||||
if (!StringUtils.isEmpty(className)) {
|
||||
Class<?> clz = Class.forName(className);
|
||||
Class<?> clz = ClassLoader.getSystemClassLoader()forName(className);
|
||||
ClusterFormationChangedNotifier notifier = (ClusterFormationChangedNotifier) clz.newInstance();
|
||||
notifiers.put(notifier.getType(), notifier);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user