Re: Injecting one service into another 'ignored path' service

"Christopher Dodunski" <[email protected]> Tue, 9 Apr 2019 18:29:09 +1200 (NZST)
Newsgroups gmane.comp.java.tapestry.user
Message-ID <[email protected]>
And here, another version of custom configurator, where Jersey is the CDI
implementation.


public class CdiAwareConfigurator extends ServerEndpointConfig.Configurator {

    public <T> T getEndpointInstance(Class<T> endpointClass) throws
InstantiationException {
        return CDI.current().select(endpointClass).get();
    }
}


Does the Tapestry 5 IoC/DI layer also support acquiring of an instance of
a ServerEndpoint service class?  This seems to be the approach of several
other frameworks.

Chris.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]