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 Details

    • expandValue

      public static String expandValue(String value)
    • getTranslatedValue

      public static Object getTranslatedValue(Object value)
    • invoke

      public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
      Specified by:
      invoke in interface InvocationHandler
      Throws:
      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> Class<T> getProxyType()
      Specified by:
      getProxyType in interface org.jvnet.hk2.config.ConfigView
    • getProxy

      public <T extends org.jvnet.hk2.config.ConfigBeanProxy> T getProxy(Class<T> proxyType)
      Specified by:
      getProxy in interface org.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

      Throws:
      KeyStoreException
      CertificateException
      IOException
      NoSuchAlgorithmException
      UnrecoverableKeyException