org.glassfish.config.support
Class TranslatedConfigView
java.lang.Object
org.glassfish.config.support.TranslatedConfigView
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler, org.jvnet.hk2.config.ConfigView
public class TranslatedConfigView
- extends java.lang.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 |
static java.lang.String |
getAlias(java.lang.String propName)
check if a given property name matches AS alias pattern ${ALIAS=aliasname}. |
org.jvnet.hk2.config.ConfigView |
getMasterView()
|
<T extends org.jvnet.hk2.config.ConfigBeanProxy>
T |
|
getProxy(java.lang.Class<T> proxyType)
|
<T extends org.jvnet.hk2.config.ConfigBeanProxy>
java.lang.Class<T> |
|
getProxyType()
|
static java.lang.String |
getRealPasswordFromAlias(MasterPassword masterPasswordHelper,
java.lang.String at)
|
static java.lang.Object |
getTranslatedValue(java.lang.Object value)
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
static void |
setHabitat(org.jvnet.hk2.component.Habitat h)
|
void |
setMasterView(org.jvnet.hk2.config.ConfigView view)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getTranslatedValue
public static java.lang.Object getTranslatedValue(java.lang.Object value)
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
getMasterView
public org.jvnet.hk2.config.ConfigView getMasterView()
- Specified by:
getMasterView in interface org.jvnet.hk2.config.ConfigView
setMasterView
public void setMasterView(org.jvnet.hk2.config.ConfigView view)
- Specified by:
setMasterView in interface org.jvnet.hk2.config.ConfigView
getProxyType
public <T extends org.jvnet.hk2.config.ConfigBeanProxy> java.lang.Class<T> getProxyType()
- Specified by:
getProxyType in interface org.jvnet.hk2.config.ConfigView
getProxy
public <T extends org.jvnet.hk2.config.ConfigBeanProxy> T getProxy(java.lang.Class<T> proxyType)
- Specified by:
getProxy in interface org.jvnet.hk2.config.ConfigView
setHabitat
public static void setHabitat(org.jvnet.hk2.component.Habitat h)
getAlias
public static java.lang.String getAlias(java.lang.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 java.lang.String getRealPasswordFromAlias(MasterPassword masterPasswordHelper,
java.lang.String at)
throws java.security.KeyStoreException,
java.security.cert.CertificateException,
java.io.IOException,
java.security.NoSuchAlgorithmException,
java.security.UnrecoverableKeyException
- Throws:
java.security.KeyStoreException
java.security.cert.CertificateException
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException
Copyright © 2012 GlassFish Community. All Rights Reserved.