Class BufferStrategyFactory


  • public class BufferStrategyFactory
    extends java.lang.Object
    • Field Detail

      • DEFAULT_STRATEGIES

        private static final java.util.Map<java.lang.String,​BufferStrategy> DEFAULT_STRATEGIES
    • Constructor Detail

      • BufferStrategyFactory

        private BufferStrategyFactory()
    • Method Detail

      • valueOf

        public static BufferStrategy valueOf​(java.lang.String strategyName)
        creates a BufferStrategy based on the name. The following BufferStrategies are supported out of the box:
        • BY_INSTANCE
        • THREAD_LOCAL
        • QUEUE
        • SINGLETON
        You can also pass in a fully qualified class name of a custom BufferStrategy.
        Throws:
        java.lang.IllegalArgumentException - if the given strategyName does not resolve to a BufferStrategy.