}
static void validateGenericParams(MonitoringMXBean exposedObject) throws AgentRegistrationException {
if ((ComponentInfo.INSTANCE.getName() == null)
|| !ComponentInfo.INSTANCE.getName().matches(FoundationMonitoringConstants.APP_INSTANCE_NAMING_STANDARD)) {
throw new AgentRegistrationException("Name attributes does not follow the naming standard, which is "
+ FoundationMonitoringConstants.APP_NAME_NAMING_STANDARD);
}
if ((ComponentInfo.INSTANCE.getInstance() != null) && (!ComponentInfo.INSTANCE.getInstance().trim().equals(""))
&& !ComponentInfo.INSTANCE.getInstance().matches(FoundationMonitoringConstants.APP_INSTANCE_NAMING_STANDARD)) {
throw new AgentRegistrationException("Instance attributes does not follow the naming standard, which is "
+ FoundationMonitoringConstants.APP_NAME_NAMING_STANDARD);
}
}