Class XsuaaServicePropertySourceFactory

java.lang.Object
com.sap.cloud.security.xsuaa.XsuaaServicePropertySourceFactory
All Implemented Interfaces:
org.springframework.core.io.support.PropertySourceFactory

public class XsuaaServicePropertySourceFactory extends Object implements org.springframework.core.io.support.PropertySourceFactory
Part of Auto Configuration XsuaaAutoConfiguration

Example Usage

 declared on a class:

 @Configuration
 @PropertySource(factory = XsuaaServicePropertySourceFactory.class, value = { "" })

 declared on attribute:

 @Value("${xsuaa.url:}")
 
  • Field Details

  • Constructor Details

    • XsuaaServicePropertySourceFactory

      public XsuaaServicePropertySourceFactory()
  • Method Details

    • createPropertySource

      public org.springframework.core.env.PropertySource<?> createPropertySource(String name, org.springframework.core.io.support.EncodedResource resource) throws IOException
      Specified by:
      createPropertySource in interface org.springframework.core.io.support.PropertySourceFactory
      Throws:
      IOException
    • create

      public static org.springframework.core.env.PropertySource create(String name, Properties properties)
      Creates a PropertySource object for a map of xsuaa properties.
      Parameters:
      name - of the propertySource. Use only "xsuaa" as name in case you like to overwrite/set all properties.
      properties - map of xsuaa properties
      Returns:
      created @Code{PropertySource}