Annotation Interface Shared


@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface Shared
Using this annotation on a class or interface of a Bean that is instantiated in a child context causes the same Bean instance to be registered in the parent context as well.