ComponentProviders which are used to provide
instances.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private | |
| public | ComponentProviderService(ComponentProviderService
original instance. componentProviderService)Copy constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public static ComponentProviderService | Returns: initializedComponentProviderService.Create new instance of |
| public static ComponentProviderService | Returns: initializedComponentProviderService.Create new instance of |
| public < type of the provided instance. T> Object | Returns: instanceClass whose instance will be provided.session to which the instance belongs (think of this as a scope). session, EndpointConfig configuration corresponding to current context. Used for
endpointConfig, ErrorCollector jakarta. and
jakarta.error collector. collector)Provide an instance of |
| public < the type of the endpoint. T> Object | Returns: an instance of the endpoint that will handle all interactions from a new client.the class of the endpoint. endpointClass)This method is called by the container each time a new client connects to the logical endpoint this configurator configures. |
| public < type of the provided instance. T> Object | Returns: instanceClass whose instance will be provided.session to which the instance belongs (think of this as a scope). session, ErrorCollector error collector. collector)Provide an instance of class which is coupled to |
| private <T> Object | |
| public Method | |
| public void |
| providers | back to summary |
|---|---|
| private final List<ComponentProvider> providers | |
| sessionToObject | back to summary |
|---|---|
| private final Map<Session, Map<Class<?>, Object>> sessionToObject | |
| ComponentProviderService | back to summary |
|---|---|
| private ComponentProviderService(List<ComponentProvider> providers) | |
| ComponentProviderService | back to summary |
|---|---|
| public ComponentProviderService(ComponentProviderService componentProviderService) Copy constructor.
| |
| create | back to summary |
|---|---|
| public static ComponentProviderService create() Create new instance of
Searches for registered
| |
| createClient | back to summary |
|---|---|
| public static ComponentProviderService createClient() Create new instance of
Contains *only*
| |
| getCoderInstance | back to summary |
|---|---|
| public <T> Object getCoderInstance(Class<T> c, Session session, EndpointConfig endpointConfig, ErrorCollector collector) Provide an instance of
The first time the method is called the provider creates an instance, calls
| |
| getEndpointInstance | back to summary |
|---|---|
| public <T> Object getEndpointInstance(Class<T> endpointClass) throws InstantiationException This method is called by the container each time a new client connects to the logical endpoint this configurator configures. Developers may override this method to control instantiation of endpoint instances in order to customize the initialization of the endpoint instance, or manage them in some other way. If the developer overrides this method, services like dependency injection that are otherwise supported, for example, when the implementation is part of the Java EE platform may not be available. The platform default implementation of this method returns a new endpoint instance per call, thereby ensuring that there is one endpoint instance per client, the default deployment cardinality.
| |
| getInstance | back to summary |
|---|---|
| public <T> Object getInstance(Class<T> c, Session session, ErrorCollector collector) Provide an instance of class which is coupled to The first time the method is called the provider creates an instance and caches it. Next time the method is called the cached instance is returned.
| |
| getInstance | back to summary |
|---|---|
| private <T> Object getInstance(Class<T> clazz) throws InstantiationException | |
| getInvocableMethod | back to summary |
|---|---|
| public Method getInvocableMethod(Method method) | |
| removeSession | back to summary |
|---|---|
| public void removeSession(Session session) Remove
| |