INNER CODE UNIT · Java

init

xiaojinzi123/Component · ComponentCompiler/src/main/java/com/xiaojinzi/component/BaseHostProcessor.java:19

    public synchronized void init(ProcessingEnvironment processingEnvironment) {
        super.init(processingEnvironment);
        Map<String, String> options = processingEnv.getOptions();
        if (options != null) {
            componentModuleName = options.get("ModuleName");
            if (componentModuleName == null || componentModuleName.isEmpty()) {
                componentModuleName = options.get("HOST");
            }
        }
        if (componentModuleName == null || componentModuleName.isEmpty()) {
            throw NULLHOSTEXCEPTION;
        }
        /*boolean isMatch = componentHost.matches(ComponentConstants.HOST_REGEX);
        if (!isMatch) {
            throw new RuntimeException("the host is not a valid name:" + componentHost);
        }*/
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…