[
https://issues.jboss.org/browse/WFCORE-1160?page=com.atlassian.jira.plugi...
]
David Lloyd commented on WFCORE-1160:
-------------------------------------
I would suggest changing from {{Class<T>}} to some other type-checking mechanism
e.g. a {{Function<Object, T>}} casting function. The {{Class<T>}} API can be
emulated by using a lambda {{obj -> clazz.cast(obj)}}.
Definition of capabilities where the service return type is generic.
--------------------------------------------------------------------
Key: WFCORE-1160
URL:
https://issues.jboss.org/browse/WFCORE-1160
Project: WildFly Core
Issue Type: Enhancement
Components: Domain Management
Reporter: Darran Lofthouse
Assignee: Brian Stansberry
Labels: affects_elytron
Fix For: 3.0.0.Alpha1
Within Elytron we have the following interface: -
{code}
public interface SecurityFactory<T> {}
{code}
It is desirable to define capabilities where the generic type is specified so that as we
wire together the various services we can be sure the correct SecurityFactory services are
injected in the correct locations.
As it stands our only option is going to be a runtime check so incorrectly wired
SecurityFactory references will only occur late.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)