1414 * limitations under the License.
1515 */
1616
17- // Package gs provides all the concepts required for go-spring implementation.
17+ // Package gs provides all the concepts required for Go-Spring implementation.
1818package gs
1919
2020import (
@@ -25,12 +25,12 @@ import (
2525 "github.com/go-spring/spring-core/conf"
2626)
2727
28- // BeanInitFunc defines the prototype for initialization functions,
29- // e.g., `func(bean)` or `func(bean) error`.
28+ // BeanInitFunc defines the prototype for initialization functions.
29+ // For example: `func(bean)` or `func(bean) error`.
3030type BeanInitFunc = interface {}
3131
32- // BeanDestroyFunc defines the prototype for destroy functions,
33- // e.g., `func(bean)` or `func(bean) error`.
32+ // BeanDestroyFunc defines the prototype for destroy functions.
33+ // For example: `func(bean)` or `func(bean) error`.
3434type BeanDestroyFunc = interface {}
3535
3636// BeanInitInterface defines an interface for bean initialization.
@@ -89,7 +89,7 @@ type Condition interface {
8989 Matches (ctx CondContext ) (bool , error )
9090}
9191
92- // CondBean represents a bean with an ID, Name, TypeName, and Type.
92+ // CondBean represents a bean with Name and Type.
9393type CondBean interface {
9494 Name () string
9595 Type () reflect.Type
@@ -132,6 +132,7 @@ type Callable interface {
132132
133133/*********************************** conf ************************************/
134134
135+ // Properties represents read-only configuration properties.
135136type Properties = conf.ReadOnlyProperties
136137
137138// Refreshable represents an object that can be dynamically refreshed.
@@ -144,8 +145,8 @@ type Refreshable interface {
144145
145146// ConfigurationParam holds configuration parameters for bean setup.
146147type ConfigurationParam struct {
147- Includes []string // Methods to include
148- Excludes []string // Methods to exclude
148+ Includes []string // List of methods to include
149+ Excludes []string // List of methods to exclude
149150}
150151
151152// BeanRegistration provides methods to configure and register bean metadata.
0 commit comments