I have a @ConversationScoped
CDI bean with a Conversation
interface injected and access modifier set as private. Something like this:
@Named
@ConversationScoped
public class MySampleCdiBean implements Serializable {
@Inject
private Conversation conversation;
//other stuffs
}
My question is do I need a getter for this injected conversation interface? Does the CDI container need this getter? Any resource from where I can understand the underlying details of how CDI container handles a conversation would be super helpful too.