org.springframework.boot.ansi

Class AnsiPropertySource



  • public class AnsiPropertySource
    extends org.springframework.core.env.PropertySource<AnsiElement>
    PropertyResolver for AnsiStyle, AnsiColor and AnsiBackground elements. Supports properties of the form AnsiStyle.BOLD , AnsiColor.RED or AnsiBackground.GREEN. Also supports a prefix of Ansi. which is an aggregation of everything (with background colors prefixed BG_).
    Since:
    1.3.0
    Author:
    Phillip Webb
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource

        org.springframework.core.env.PropertySource.StubPropertySource
    • Field Summary

      • Fields inherited from class org.springframework.core.env.PropertySource

        logger, name, source
    • Constructor Detail

      • AnsiPropertySource

        public AnsiPropertySource(String name,
                                  boolean encode)
        Create a new AnsiPropertySource instance.
        Parameters:
        name - the name of the property source
        encode - if the output should be encoded
    • Method Detail

      • getProperty

        public Object getProperty(String name)
        Specified by:
        getProperty in class org.springframework.core.env.PropertySource<AnsiElement>

Copyright © 2016 Pivotal Software, Inc.. All rights reserved.