Package org.jboss.weld.context.api
Interface ContextualInstance<T>
public interface ContextualInstance<T>
Represents a contextual instance of a given type. This is an abstraction on top of the actual bean instance stored in each
context. It glues together the actual instance with its
CreationalContext and Contextual- Author:
- Matej Novotny
-
Method Details
-
getInstance
T getInstance()Returns the actual bean instance- Returns:
- bean instance
-
getCreationalContext
jakarta.enterprise.context.spi.CreationalContext<T> getCreationalContext()Returns theCreationalContextfor this contextual instance- Returns:
- creational context
-
getContextual
jakarta.enterprise.context.spi.Contextual<T> getContextual()Returns theContextualfor this contextual instance- Returns:
- contextual object
-