Search in sources :

Example 1 with HttpIdentityResponseFactory

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());
    }
}
Also used : HandlerComparator(org.wso2.carbon.identity.core.handler.HandlerComparator) Reference(org.osgi.service.component.annotations.Reference)

Aggregations

Reference (org.osgi.service.component.annotations.Reference)1 HandlerComparator (org.wso2.carbon.identity.core.handler.HandlerComparator)1