Package org.glassfish.config.support
Class TranslatedConfigView
- java.lang.Object
-
- org.glassfish.config.support.TranslatedConfigView
-
- All Implemented Interfaces:
InvocationHandler,org.jvnet.hk2.config.ConfigView
public class TranslatedConfigView extends Object implements org.jvnet.hk2.config.ConfigView
View that translate configured attributes containing properties like ${foo.bar} into system properties values.- Author:
- Jerome Dochez
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetAlias(String propName)check if a given property name matches AS alias pattern ${ALIAS=aliasname}.org.jvnet.hk2.config.ConfigViewgetMasterView()<T extends org.jvnet.hk2.config.ConfigBeanProxy>
TgetProxy(Class<T> proxyType)<T extends org.jvnet.hk2.config.ConfigBeanProxy>
Class<T>getProxyType()static StringgetRealPasswordFromAlias(String at)static ObjectgetTranslatedValue(Object value)Objectinvoke(Object proxy, Method method, Object[] args)static voidsetHabitat(org.glassfish.hk2.api.ServiceLocator h)voidsetMasterView(org.jvnet.hk2.config.ConfigView view)
-
-
-
Method Detail
-
invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
- 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
public <T extends org.jvnet.hk2.config.ConfigBeanProxy> Class<T> getProxyType()
- Specified by:
getProxyTypein interfaceorg.jvnet.hk2.config.ConfigView
-
getProxy
public <T extends org.jvnet.hk2.config.ConfigBeanProxy> T getProxy(Class<T> proxyType)
- Specified by:
getProxyin interfaceorg.jvnet.hk2.config.ConfigView
-
setHabitat
public static void setHabitat(org.glassfish.hk2.api.ServiceLocator h)
-
getAlias
public static String getAlias(String propName)
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
-
-