Class CompositeUtils
java.lang.Object
org.springframework.cloud.config.server.composite.CompositeUtils
- Author:
- Dylan Roberts, Olga Maciaszek-Sharma
-
Method Summary
Modifier and TypeMethodDescriptiongetCompositeTypeList(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(Class<?> factoryClass) Given a FactoryClass, return the generic type parameters of the factory (The actual repository class, and its properties class).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 Class<?> getFactoryClass(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory, String factoryName) Given a Factory Name, return the FactoryClass.static StringgetFactoryName(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.
-
Method Details
-
getCompositeTypeList
-
getFactoryName
public 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. SeegetCompositeTypeList(Environment)- Parameters:
type- type of a repositorybeanFactory- Spring Bean Factory- Returns:
- name of the factory bean
-
getEnvironmentRepositoryFactoryTypeParams
public 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).- Parameters:
beanFactory- Spring Bean FactoryfactoryName- name of the factory- Returns:
- generic type params of the factory
-
getEnvironmentRepositoryFactoryTypeParams
-
getFactoryClass
-