class ConfigResourceImpl implements ConfigResource {
    private static final Logger LOG = LoggerFactory.getLogger(ConfigResourceImpl.class);

    @Autowired
    private PluginAdapter pluginAdapter;

    @Autowired(required = false)
    private PluginConfigAdapter pluginConfigAdapter;

    @Autowired
    private PluginEventWapper pluginEventWapper;

    @Override
    public ConfigType getConfigType() {
        if (pluginConfigAdapter == null) {
            LOG.error("Remote config adapter isn't provided");

            throw new DiscoveryException("Remote config adapter isn't provided");
        }

        return pluginConfigAdapter.getConfigType();
    }

    @Override
    public void update(String config, boolean async) {
        pluginEventWapper.fireRuleUpdated(new RuleUpdatedEvent(SubscriptionType.PARTIAL, config), async);
    }

    @Override
    public void clear(boolean async) {
        pluginEventWapper.fireRuleCleared(new RuleClearedEvent(SubscriptionType.PARTIAL), async);
    }

    @Override
    public List<String> view() {<FILL_FUNCTION_BODY>}
}

        List<String> ruleList = new ArrayList<String>(3);

        String localRuleContent = StringUtils.EMPTY;
        RuleEntity localRuleEntity = pluginAdapter.getLocalRule();
        if (localRuleEntity != null && StringUtils.isNotEmpty(localRuleEntity.getContent())) {
            localRuleContent = localRuleEntity.getContent();
        }

        String dynamicGlobalRuleContent = StringUtils.EMPTY;
        RuleEntity dynamicGlobalRuleEntity = pluginAdapter.getDynamicGlobalRule();
        if (dynamicGlobalRuleEntity != null && StringUtils.isNotEmpty(dynamicGlobalRuleEntity.getContent())) {
            dynamicGlobalRuleContent = dynamicGlobalRuleEntity.getContent();
        }

        String dynamicPartialRuleContent = StringUtils.EMPTY;
        RuleEntity dynamicPartialRuleEntity = pluginAdapter.getDynamicPartialRule();
        if (dynamicPartialRuleEntity != null && StringUtils.isNotEmpty(dynamicPartialRuleEntity.getContent())) {
            dynamicPartialRuleContent = dynamicPartialRuleEntity.getContent();
        }

        ruleList.add(localRuleContent);
        ruleList.add(dynamicGlobalRuleContent);
        ruleList.add(dynamicPartialRuleContent);

        return ruleList;
    
<no_super_class>