ProjectContext (Grails 3.2.4)
Date: 2016-12-21

Package: org.grails.cli.profile

## [Java] Interface ProjectContext

- The project context used by a Profile

  Authors:
    Lari Hotari
    Graeme Rocher

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `java.io.File` | `getBaseDir()` @return The base directory of the project
    `ConfigMap` | `getConfig()` @return The codegen config
    `GrailsConsole` | `getConsole()` @return The GrailsConsole instance
    `java.lang.String` | `navigateConfig(java.lang.String... path)` Obtains a value from the codegen configuration
    `T` | `navigateConfigForType(java.lang.Class<T> requiredType, java.lang.String... path)` Obtains a value of the given type from the codegen configuration

- - ### Method Detail

    - #### public java.io.File getBaseDir()

      Returns:
        The base directory of the project

    - #### public ConfigMap getConfig()

      Returns:
        The codegen config

    - #### public GrailsConsole getConsole()

      Returns:
        The GrailsConsole instance

    - #### public java.lang.String navigateConfig(java.lang.String... path)

      Obtains a value from the codegen configuration

      Parameters:
        `path` - The path to value
      Returns:
        The value or null if not set

    - #### public T navigateConfigForType(java.lang.Class<T> requiredType, java.lang.String... path)

      Obtains a value of the given type from the codegen configuration

      Parameters:
        `requiredType` - The required return type
        `path` - The path to value
      Returns:
        The value or null if not set