public final class CompositeUtils extends Object
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).
|
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)
environment
- Spring Environmentpublic static String getFactoryName(String type, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
getCompositeTypeList(Environment)
type
- type of a repositorybeanFactory
- Spring Bean Factorypublic static Type[] getEnvironmentRepositoryFactoryTypeParams(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, String factoryName)
beanFactory
- Spring Bean FactoryfactoryName
- name of the factoryCopyright © 2019 Pivotal Software, Inc.. All rights reserved.