Initializing help system before first use

SimulationPluginCache

  • java.lang.Object
    • com.fico.xpress.simulation.internal.cache.SimulationPluginCache

  • @Component
    @CacheConfig(cacheNames="ruleservers")
    public class SimulationPluginCache
    extends Object
    This class is used to manage the cached services. In order for the cache to work you should not create instances directly: you must always go through Spring Bean creation (use Autowired or getBean).

    The Rule Server cache is used to quickly retrieve and instantiate previously started Rule Server configuration. It assumes the "RuleServerInfo" entirely determine what is the configuration and state of the Rule Server to be created (e.g. two different RuleServerInfo will lead to creating two different servers).

    The cache will call the 'shutdown' method of the RuleServer when it is cleared.

    • Constructor Detail

      • SimulationPluginCache

        public SimulationPluginCache()
    • Method Detail

      • create

        @Cacheable(sync=true)
        public SimulationPlugin create​(SimulationPluginConfig simulationPluginConfig)
                                throws SimulationException
        This method will create an instance of a plugin. The body of the method is not called, and a cached instance will be returned, if the method has already been executed with an argument having the same SimulationPluginConfig.hashCode().
        Parameters:
        simulationPluginConfig - The service configuration
        Returns:
        The instance of the service
        Throws:
        SimulationException - Exception are raised if the service cannot be created
      • delete

        @CacheEvict
        public void delete​(SimulationPluginConfig simulationPluginConfig)
        This method can be used to delete elements from the cache.
        Parameters:
        simulationPluginConfig - The rule server to be deleted.
      • deleteAll

        @CacheEvict(allEntries=true)
        public void deleteAll()
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext ctx)

© 2001-2022 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.