class MyRegisterListener extends AbstractRegisterListener {
    @Override
    public void onRegister(Registration registration) {<FILL_FUNCTION_BODY>}

    @Override
    public void onDeregister(Registration registration) {

    }

    @Override
    public void onSetStatus(Registration registration, String status) {

    }

    @Override
    public void onClose() {

    }

    @Override
    public int getOrder() {
        return LOWEST_PRECEDENCE - 500;
    }
}

        String serviceId = pluginAdapter.getServiceId();
        String group = pluginAdapter.getGroup();
        if (StringUtils.equals(group, "mygroup1")) {
            throw new DiscoveryException("服务名=" + serviceId + "，组名=" + group + "的服务禁止被注册到注册中心");
        }
    
<methods>public non-sealed void <init>() ,public ServiceRegistry<?> getServiceRegistry() <variables>protected ServiceRegistry<?> serviceRegistry