Package org.glassfish.config.support
Class TranslatedConfigView
java.lang.Object
org.glassfish.config.support.TranslatedConfigView
- All Implemented Interfaces:
InvocationHandler,org.jvnet.hk2.config.ConfigView
View that translate configured attributes containing properties like ${foo.bar} into system properties values.
- Author:
- Jerome Dochez
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringexpandValue(String value) static Stringcheck if a given property name matches AS alias pattern ${ALIAS=aliasname}. if so, return the aliasname, otherwise return null.org.jvnet.hk2.config.ConfigView<T extends org.jvnet.hk2.config.ConfigBeanProxy>
T<T extends org.jvnet.hk2.config.ConfigBeanProxy>
Class<T>static Stringstatic ObjectgetTranslatedValue(Object value) static voidsetHabitat(org.glassfish.hk2.api.ServiceLocator h) voidsetMasterView(org.jvnet.hk2.config.ConfigView view)
-
Method Details
-
expandValue
-
getTranslatedValue
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
getMasterView
public org.jvnet.hk2.config.ConfigView getMasterView()- Specified by:
getMasterViewin interfaceorg.jvnet.hk2.config.ConfigView
-
setMasterView
public void setMasterView(org.jvnet.hk2.config.ConfigView view) - Specified by:
setMasterViewin interfaceorg.jvnet.hk2.config.ConfigView
-
getProxyType
- Specified by:
getProxyTypein interfaceorg.jvnet.hk2.config.ConfigView
-
getProxy
- Specified by:
getProxyin interfaceorg.jvnet.hk2.config.ConfigView
-
setHabitat
public static void setHabitat(org.glassfish.hk2.api.ServiceLocator h) -
getAlias
check if a given property name matches AS alias pattern ${ALIAS=aliasname}. if so, return the aliasname, otherwise return null.- Parameters:
propName- The property name to resolve. ex. ${ALIAS=aliasname}.- Returns:
- The aliasname or null.
-
getRealPasswordFromAlias
public static String getRealPasswordFromAlias(String at) throws KeyStoreException, CertificateException, IOException, NoSuchAlgorithmException, UnrecoverableKeyException
-