# finishRefresh method

1. @override

Future<void> finishRefresh()
override

Template method invoked during refresh to complete the refresh process.

Subclasses can override this to perform additional initialization steps or to publish custom events.

Example:

    @override
    Future<void> finishRefresh() async {
    logger.info("Custom finish refresh logic here");
    }

This is part of Jetleaf – a framework which developers can use to build web applications.

## Implementation

    @override
    Future<void> finishRefresh() {
      if (!containsSingleton(APPLICATION_CONTEXT_POD_NAME)) {
        final contextClass = getClass();

        registerSingleton(
          APPLICATION_CONTEXT_POD_NAME,
          contextClass,
          object: ObjectHolder(this, packageName: this.getPackageName(), qualifiedName: contextClass.getQualifiedName())
        );
      }

      return super.finishRefresh();
    }