public class CompositeUtils extends Object
Constructor and Description |
---|
CompositeUtils() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
getCompositeTypeList(org.springframework.core.env.Environment environment)
Returns list of values of the `type` field from the `spring.cloud.config.server.composite` collection.
|
static Type[] |
getEnvironmentRepositoryFactoryTypeParams(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory,
String factoryName)
Given a Factory Name return the generic type parameters of the factory (The actual repository class, and its properties class)o
|
static String |
getFactoryName(String type,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
Given a type of EnvironmentRepository (git, svn, native, etc...) returns the name of the factory bean.
|
public static List<String> getCompositeTypeList(org.springframework.core.env.Environment environment)
public static String getFactoryName(String type, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
getCompositeTypeList(Environment)
public static Type[] getEnvironmentRepositoryFactoryTypeParams(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, String factoryName)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.