public class TranslatedConfigView extends Object implements ConfigView
Modifier and Type | Field and Description |
---|---|
static ThreadLocal<Boolean> |
doSubstitution |
Modifier and Type | Method and Description |
---|---|
static String |
expandConfigValue(String value)
Expand variables in string value (config usage).
|
static String |
expandValue(String value)
Expand variables in string value (non-config usage).
|
static String |
getAlias(String propName,
String token)
check if a given property name matches AS alias pattern ${ALIAS=aliasname}.
|
ConfigView |
getMasterView() |
<T extends ConfigBeanProxy> |
getProxy(Class<T> proxyType) |
<T extends ConfigBeanProxy> |
getProxyType() |
static String |
getRealPasswordFromAlias(String at) |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
static void |
setHabitat(org.glassfish.hk2.api.ServiceLocator h) |
void |
setMasterView(ConfigView view) |
public static final ThreadLocal<Boolean> doSubstitution
public static String expandValue(String value)
fish.payara.substitution.disable
, and should be used by any code that handles
deployment descriptors, where this constitutes a non-standard behavior.value
- value to be expandednull
when value is null. Original value when substitution is disabled.public static String expandConfigValue(String value)
value
- value to be expandednull
when value is null.public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public ConfigView getMasterView()
getMasterView
in interface ConfigView
public void setMasterView(ConfigView view)
setMasterView
in interface ConfigView
public <T extends ConfigBeanProxy> Class<T> getProxyType()
getProxyType
in interface ConfigView
public <T extends ConfigBeanProxy> T getProxy(Class<T> proxyType)
getProxy
in interface ConfigView
public static void setHabitat(org.glassfish.hk2.api.ServiceLocator h)
public static String getAlias(String propName, String token)
propName
- The property name to resolve. ex. ${ALIAS=aliasname}.token
- public static String getRealPasswordFromAlias(String at) throws KeyStoreException, CertificateException, IOException, NoSuchAlgorithmException, UnrecoverableKeyException
Copyright © 2019. All rights reserved.