gs_core

package
v1.3.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package gs_core provides the core implementation of the Inversion of Control (IoC) container in the Go-Spring framework. It is responsible for managing the lifecycle, dependency resolution, and injection of application beans.

Index

Constants

View Source
const (
	RefreshDefault = RefreshState(iota)
	Refreshing
	Refreshed
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	*resolving.Resolving
	*injecting.Injecting
	State RefreshState
}

Container represents the core IoC container of the Go-Spring framework. It orchestrates two major phases:

  1. Resolving: Registers, filters, and activates bean definitions.
  2. Injecting: Performs dependency injection and final wiring of active beans.

func New

func New() *Container

New creates and returns a new IoC container instance.

func (*Container) Refresh

func (c *Container) Refresh(p flatten.Storage, roots []*gs_bean.BeanDefinition) error

Refresh performs the full lifecycle initialization of the container.

type RefreshState added in v1.3.0

type RefreshState int

RefreshState represents the current state of the container.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL