@Service public final class ConfigModularityUtils extends Object
| Constructor and Description |
|---|
ConfigModularityUtils() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSystemPropertyForToken(List<ConfigCustomizationToken> tokens,
SystemPropertyBag bag) |
<T extends org.jvnet.hk2.config.ConfigBeanProxy> |
applyCustomTokens(ConfigBeanDefaultValue configBeanDefaultValue,
T finalConfigBean,
org.jvnet.hk2.config.ConfigBeanProxy parent) |
boolean |
checkInterfaces(Class[] ifs,
Type actualGenericParameter) |
String |
convertConfigElementNameToClassName(String name)
convert a configuration element name to representing class name
|
boolean |
deleteConfigurationForConfigBean(org.jvnet.hk2.config.ConfigBeanProxy configBean,
Collection col,
ConfigBeanDefaultValue defaultValue) |
Method |
findDeeperSuitableCollectionGetter(Class owner,
Class typeToSet) |
Method |
findSuitableCollectionGetter(Class owner,
Class typeToSet)
Find a getter method that returns a collection of the type we want to put set.
|
List<Class> |
getAnnotatedConfigBeans(Class annotationType) |
Class |
getClassFor(String serviceName) |
Class |
getClassForFullName(String configBeanClassName) |
Class |
getClassFromDescriptor(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor) |
Class |
getClassFromInjector(org.jvnet.hk2.config.ConfigInjector injector) |
<T extends org.jvnet.hk2.config.ConfigBeanProxy> |
getConfigBeanFromCollection(Collection<T> col,
T configBeanObject,
Class typeOfObjects) |
org.jvnet.hk2.config.ConfigBeanProxy |
getConfigBeanInstanceFor(Class configBeanType) |
<U extends org.jvnet.hk2.config.ConfigBeanProxy> |
getConfigurationFileUrl(Class<U> configBeanClass,
String baseFileName,
String runtimeType) |
<T extends org.jvnet.hk2.config.ConfigBeanProxy> |
getCurrentConfigBeanForDefaultValue(ConfigBeanDefaultValue defaultValue) |
List<ConfigBeanDefaultValue> |
getDefaultConfigurations(Class configBeanClass,
String runtimeType)
If exists, locate and return a URL to the configuration snippet for the given config bean class.
|
Class |
getDuckClass(Class configBeanType) |
<U extends org.jvnet.hk2.config.ConfigBeanProxy> |
getExtensions(org.jvnet.hk2.config.ConfigBeanProxy parent) |
Method |
getGetDefaultValuesMethod(Class configBeanType) |
List<Class> |
getInstalledExtensions(Class extensionType) |
Method |
getMatchingGetterMethod(Class classToQuery,
Class methodReturnType)
Find a suitable getter method in the given class.
|
Method |
getMatchingSetterMethod(Class classToQuery,
Class typeToSet)
Finds and return the setter method matching the class identified by typeToSet
|
<T extends org.jvnet.hk2.config.ConfigBeanProxy> |
getNamedConfigBeanFromCollection(Collection<T> col,
String nameToLookFor,
Class typeOfObjects) |
String |
getNameForConfigBean(Object configBean,
Class configBeanType) |
org.jvnet.hk2.config.ConfigBeanProxy |
getOwner(org.jvnet.hk2.config.ConfigBeanProxy parent,
String parentElement,
String childElement) |
Class |
getOwningClassForLocation(String location) |
org.jvnet.hk2.config.ConfigBeanProxy |
getOwningObject(String location) |
String |
getPropertyValue(ConfigCustomizationToken token,
org.jvnet.hk2.config.ConfigBeanProxy finalConfigBean) |
String |
getRuntimeTypePrefix(com.sun.enterprise.module.bootstrap.StartupContext startupContext) |
String |
getServiceTypeNameIfNamedComponent(String serviceName) |
boolean |
hasCustomConfig(Class configBeanClass) |
boolean |
isCommandInvocation() |
boolean |
isIgnorePersisting() |
String |
replacePropertiesWithCurrentValue(String xmlConfiguration,
ConfigBeanDefaultValue value) |
String |
resolveExpression(String expression) |
String |
serializeConfigBean(org.jvnet.hk2.config.ConfigBeanProxy configBean) |
String |
serializeConfigBeanByType(Class configBeanType) |
void |
setCommandInvocation(boolean commandInvocation) |
<T extends org.jvnet.hk2.config.ConfigBeanProxy> |
setConfigBean(T finalConfigBean,
ConfigBeanDefaultValue configBeanDefaultValue,
org.jvnet.hk2.config.ConfigBeanProxy parent) |
void |
setIgnorePersisting(boolean ignorePersisting) |
<T extends org.jvnet.hk2.config.ConfigBeanProxy> |
stackPositionHigher(T finalConfigBean,
org.jvnet.hk2.config.ConfigBeanProxy itemToRemove) |
public <U extends org.jvnet.hk2.config.ConfigBeanProxy> URL getConfigurationFileUrl(Class<U> configBeanClass, String baseFileName, String runtimeType)
public List<ConfigBeanDefaultValue> getDefaultConfigurations(Class configBeanClass, String runtimeType)
configBeanClass - the config bean type we want to check for its configuration snippetpublic boolean hasCustomConfig(Class configBeanClass)
public Method findSuitableCollectionGetter(Class owner, Class typeToSet)
owner - The class we want to search to find a method that returns a Collection typed with toSetTypetypeToSet - The type we want to find a matching collection fopublic Method findDeeperSuitableCollectionGetter(Class owner, Class typeToSet)
public org.jvnet.hk2.config.ConfigBeanProxy getOwningObject(String location)
public org.jvnet.hk2.config.ConfigBeanProxy getOwner(org.jvnet.hk2.config.ConfigBeanProxy parent,
String parentElement,
String childElement)
throws InvocationTargetException,
IllegalAccessException
public <U extends org.jvnet.hk2.config.ConfigBeanProxy> List<U> getExtensions(org.jvnet.hk2.config.ConfigBeanProxy parent)
public <T extends org.jvnet.hk2.config.ConfigBeanProxy> T setConfigBean(T finalConfigBean,
ConfigBeanDefaultValue configBeanDefaultValue,
org.jvnet.hk2.config.ConfigBeanProxy parent)
public <T extends org.jvnet.hk2.config.ConfigBeanProxy> boolean stackPositionHigher(T finalConfigBean,
org.jvnet.hk2.config.ConfigBeanProxy itemToRemove)
public <T extends org.jvnet.hk2.config.ConfigBeanProxy> void applyCustomTokens(ConfigBeanDefaultValue configBeanDefaultValue, T finalConfigBean, org.jvnet.hk2.config.ConfigBeanProxy parent) throws org.jvnet.hk2.config.TransactionFailure, PropertyVetoException
org.jvnet.hk2.config.TransactionFailurePropertyVetoExceptionpublic void addSystemPropertyForToken(List<ConfigCustomizationToken> tokens, SystemPropertyBag bag) throws org.jvnet.hk2.config.TransactionFailure, PropertyVetoException
org.jvnet.hk2.config.TransactionFailurePropertyVetoExceptionpublic <T extends org.jvnet.hk2.config.ConfigBeanProxy> T getCurrentConfigBeanForDefaultValue(ConfigBeanDefaultValue defaultValue) throws InvocationTargetException, IllegalAccessException
public <T extends org.jvnet.hk2.config.ConfigBeanProxy> T getConfigBeanFromCollection(Collection<T> col, T configBeanObject, Class typeOfObjects) throws InvocationTargetException, IllegalAccessException
public <T extends org.jvnet.hk2.config.ConfigBeanProxy> T getNamedConfigBeanFromCollection(Collection<T> col, String nameToLookFor, Class typeOfObjects) throws InvocationTargetException, IllegalAccessException
public String getNameForConfigBean(Object configBean, Class configBeanType) throws InvocationTargetException, IllegalAccessException
public String convertConfigElementNameToClassName(String name)
name - the configuration element name we want to convert to class namepublic Class getClassFromInjector(org.jvnet.hk2.config.ConfigInjector injector)
public String getServiceTypeNameIfNamedComponent(String serviceName)
public org.jvnet.hk2.config.ConfigBeanProxy getConfigBeanInstanceFor(Class configBeanType)
public String serializeConfigBean(org.jvnet.hk2.config.ConfigBeanProxy configBean)
public Method getMatchingGetterMethod(Class classToQuery, Class methodReturnType)
classToQuery - The class we want to find the getter inmethodReturnType - the type we want to find the getter forpublic Method getMatchingSetterMethod(Class classToQuery, Class typeToSet)
classToQuery - The ConfigLoader we want to inspect for presence of a setter method accepting class of type fqcn.typeToSet - the type we want to find a setter forpublic boolean deleteConfigurationForConfigBean(org.jvnet.hk2.config.ConfigBeanProxy configBean,
Collection col,
ConfigBeanDefaultValue defaultValue)
public Class getClassFromDescriptor(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
public String replacePropertiesWithCurrentValue(String xmlConfiguration, ConfigBeanDefaultValue value) throws InvocationTargetException, IllegalAccessException
public String getPropertyValue(ConfigCustomizationToken token, org.jvnet.hk2.config.ConfigBeanProxy finalConfigBean)
public String getRuntimeTypePrefix(com.sun.enterprise.module.bootstrap.StartupContext startupContext)
public boolean isIgnorePersisting()
public void setIgnorePersisting(boolean ignorePersisting)
public boolean isCommandInvocation()
public void setCommandInvocation(boolean commandInvocation)
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.