Interface EnvironmentBridge

    • Method Detail

      • isClassOnClassPath

        boolean isClassOnClassPath​(java.lang.String className)
                            throws java.lang.Exception
        Indicates if Class on the Class path.
        Parameters:
        className - Name of the Class.
        Returns:
        true if Class on the Class path.
        Throws:
        java.lang.Exception - If fails to determine if on Class path.
      • isSuperType

        boolean isSuperType​(java.lang.String className,
                            java.lang.String superType)
                     throws java.lang.Exception
        Indicates if super type.
        Parameters:
        className - Name of Class.
        superType - Super type Class.
        Returns:
        true if super type Class.
        Throws:
        java.lang.Exception - If fails to determine if super type.
      • loadClass

        <S> java.lang.Class<? extends S> loadClass​(java.lang.String className,
                                                   java.lang.Class<S> superType)
                                            throws java.lang.Exception
        Loads the Class.
        Type Parameters:
        S - Super type.
        Parameters:
        className - Name of Class.
        superType - Super type required of Class.
        Returns:
        Class.
        Throws:
        java.lang.Exception - If fails to load the Class.
      • getClassLoader

        java.lang.ClassLoader getClassLoader()
                                      throws java.lang.Exception
        Obtains the ClassLoader.
        Returns:
        ClassLoader.
        Throws:
        java.lang.Exception - If fails to obtain ClassLoader.
      • isResourceOnClassPath

        boolean isResourceOnClassPath​(java.lang.String resourcePath)
                               throws java.lang.Exception
        Indicates if the resource is on the Class path.
        Parameters:
        resourcePath - Resource path.
        Returns:
        true if the resource is on the Class path.
        Throws:
        java.lang.Exception - If fails to determine if on Class path.
      • getPreference

        java.lang.String getPreference​(java.lang.String preferenceId)
        Obtains the preference.
        Parameters:
        preferenceId - Preference identifier.
        Returns:
        Preference value or null if no configured.
      • setPreference

        void setPreference​(java.lang.String preferenceId,
                           java.lang.String value)
        Specifies the preference value.
        Parameters:
        preferenceId - Preference identifier.
        value - Value for the preference.
      • resetPreference

        void resetPreference​(java.lang.String preferenceId)
        Resets the preference to default value.
        Parameters:
        preferenceId - Preference identifier.