use of com.okta.authn.sdk.example.dao.DefaultStormtrooperDao in project okta-auth-java by okta.
the class ExampleApplication method configureJersey.
private void configureJersey(JerseyEnvironment jersey) {
// Load any resource in the resources package
String baseResourcePackage = getClass().getPackage().getName() + ".resources";
jersey.packages(baseResourcePackage);
AuthenticationClient client = AuthenticationClients.builder().build();
// use @Inject to bind the DAOs
jersey.register(new AbstractBinder() {
@Override
protected void configure() {
bind(new DefaultStormtrooperDao()).to(StormtrooperDao.class);
bind(new DefaultTieCraftDao()).to(TieCraftDao.class);
bind(client).to(AuthenticationClient.class);
}
});
}
Aggregations