com.cedarsoftware.ncube.PreCompiler.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of n-cube Show documentation
Show all versions of n-cube Show documentation
Multi-dimensional Rule Engine
package com.cedarsoftware.ncube
import com.cedarsoftware.ncube.rules.RulesConfiguration
import com.cedarsoftware.ncube.rules.RulesEngine
import groovy.transform.CompileStatic
import groovy.util.logging.Slf4j
import org.springframework.cache.Cache
import org.springframework.context.ApplicationContext
import org.springframework.context.ApplicationContextAware
import org.springframework.context.ConfigurableApplicationContext
import static com.cedarsoftware.ncube.ApplicationID.DEFAULT_TENANT
import static com.cedarsoftware.ncube.ApplicationID.HEAD
import static com.cedarsoftware.ncube.NCubeAppContext.ncubeRuntime
import static com.cedarsoftware.ncube.NCubeConstants.SEARCH_ACTIVE_RECORDS_ONLY
import static com.cedarsoftware.ncube.NCubeConstants.SEARCH_INCLUDE_CUBE_DATA
import static com.cedarsoftware.ncube.ReleaseStatus.RELEASE
import static com.cedarsoftware.ncube.ReleaseStatus.SNAPSHOT
import static com.cedarsoftware.ncube.rules.RulesConfiguration.APP_BRANCH
import static com.cedarsoftware.ncube.rules.RulesConfiguration.APP_NAME
import static com.cedarsoftware.ncube.rules.RulesConfiguration.APP_STATUS
import static com.cedarsoftware.ncube.rules.RulesConfiguration.APP_TENANT
import static com.cedarsoftware.ncube.rules.RulesConfiguration.APP_VERSION
import static com.cedarsoftware.util.StringUtilities.hasContent
/**
* @author John DeRegnaucourt ([email protected]), Josh Snyder ([email protected])
*
* Copyright (c) Cedar Software LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitatœions under the License.
*/
@Slf4j
@CompileStatic
class PreCompiler implements ApplicationContextAware
{
private ApplicationContext ctx
private final RulesConfiguration rulesConfiguration
private final List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy