use of org.wso2.carbon.identity.application.authentication.framework.inbound.HttpIdentityResponseFactory in project carbon-identity-framework by wso2.
the class FrameworkServiceComponent method addHttpIdentityResponseFactory.
@Reference(name = "identity.response.factory", service = HttpIdentityResponseFactory.class, cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, unbind = "removeHttpIdentityResponseFactory")
protected void addHttpIdentityResponseFactory(HttpIdentityResponseFactory factory) {
FrameworkServiceDataHolder.getInstance().getHttpIdentityResponseFactories().add(factory);
Collections.sort(FrameworkServiceDataHolder.getInstance().getHttpIdentityResponseFactories(), new HandlerComparator());
Collections.reverse(FrameworkServiceDataHolder.getInstance().getHttpIdentityResponseFactories());
if (log.isDebugEnabled()) {
log.debug("Added HttpIdentityResponseFactory : " + factory.getName());
}
}
Aggregations