Interface Application

    • Method Detail

      • getBean

        <T> T getBean​(String name,
                      Class<T> type)
        Retrieves the bean of the given name and type from the underlying ApplicationContext, if any.
        Parameters:
        name - the name of the bean to retrieve
        type - the type of the bean to retrieve
        Returns:
        the bean with the given name of the given type, if any.
      • getBeanNames

        String[] getBeanNames​(Class<?> type)
        Returns the names for all beans of the given type.
        Parameters:
        type - the type to get the bean names for
        Returns:
        the bean names
      • getBean

        <T> T getBean​(Class<T> type)
        Returns the single bean of the given type, if any.
        Parameters:
        type - the type of the bean
        Returns:
        the bean of the given type, or null if no such bean exists.
      • getBean

        Object getBean​(String beanName)
        Returns the single bean with the given name, if any.
        Parameters:
        beanName - the name of the bean
        Returns:
        the bean with the given name, or null if no such bean exists.
      • containsBean

        boolean containsBean​(String beanName)
        Checks whether a bean with the given name exists for this Application.
        Parameters:
        beanName - the name of the bean to check existence
        Returns:
        true if such a bean exists, false otherwise
      • isFileBased

        boolean isFileBased()
        Returns true if this Application is filebased, which means it's original Resources are stored on disk, false if the Resources are stored in the database.
        Returns:
        true if this Application is filebased, false otherwise
      • isPrivileged

        boolean isPrivileged()
        Returns true if this Application is a privileged application, which means it has access to the platform's root context and the platform-scoped Environment.
        Returns:
        true if this Application is a privileged application, false otherwise
      • isHidden

        boolean isHidden()
        Returns true if this Application is hidden, which means it does not appear in the navigation menu.
        Returns:
        true if this Application is hidden
      • getMessage

        String getMessage​(Locale locale,
                          String key,
                          Object... args)
        Retrieves a message from the underlying MessageSource.
        Parameters:
        locale - the Locale for the message
        key - the message-key
        args - the arguments for the message
        Returns:
        the message
        See Also:
        ResourceType.DICTIONARY
      • getSessionParamKey

        String getSessionParamKey​(Site site)
        Returns the key to retrieve the session-parameters for this Application within the given Site from an Environment.
        Parameters:
        site - the Site to retrieve the key for
        Returns:
        the key to retrieve the session-parameters
        See Also:
        getSessionParams(Site, Environment)