use of org.wso2.carbon.identity.oauth.dcr.factory.RegistrationRequestFactory in project identity-inbound-auth-oauth by wso2-extensions.
the class DCRServiceComponent method activate.
@SuppressWarnings("unused")
protected void activate(ComponentContext componentContext) {
try {
componentContext.getBundleContext().registerService(IdentityProcessor.class.getName(), new DCRProcessor(), null);
componentContext.getBundleContext().registerService(HttpIdentityRequestFactory.class.getName(), new RegistrationRequestFactory(), null);
componentContext.getBundleContext().registerService(HttpIdentityResponseFactory.class.getName(), new HttpRegistrationResponseFactory(), null);
componentContext.getBundleContext().registerService(HttpIdentityRequestFactory.class.getName(), new UnregistrationRequestFactory(), null);
componentContext.getBundleContext().registerService(HttpIdentityResponseFactory.class.getName(), new HttpUnregistrationResponseFactory(), null);
componentContext.getBundleContext().registerService(RegistrationHandler.class.getName(), new RegistrationHandler(), null);
componentContext.getBundleContext().registerService(UnRegistrationHandler.class.getName(), new UnRegistrationHandler(), null);
componentContext.getBundleContext().registerService(DCRMService.class.getName(), new DCRMService(), null);
} catch (Throwable e) {
log.error("Error occurred while activating DCRServiceComponent", e);
}
}
Aggregations