Skip to content

Scopes: singleton and prototype #28

Closed
@mnapoli

Description

@mnapoli

Scopes:

  • singleton: one instance of the class is shared
  • prototype: a new instance of the class is created each time it is requested

Through annotations

Like Spring or Flow3

/**
 * @Scope("singleton")
 */
class MyClass {
}
/**
 * @Scope("prototype")
 */
class MyClass {
}

Through configuration

To be specified

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions