All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.captaingoldfish.scim.sdk.server.endpoints.base.ServiceProviderEndpointDefinition Maven / Gradle / Ivy

There is a newer version: 1.26.0
Show newest version
package de.captaingoldfish.scim.sdk.server.endpoints.base;

import de.captaingoldfish.scim.sdk.common.constants.ClassPathReferences;
import de.captaingoldfish.scim.sdk.common.resources.ServiceProvider;
import de.captaingoldfish.scim.sdk.common.utils.JsonHelper;
import de.captaingoldfish.scim.sdk.server.endpoints.EndpointDefinition;
import de.captaingoldfish.scim.sdk.server.endpoints.handler.ServiceProviderHandler;
import de.captaingoldfish.scim.sdk.server.schemas.ResourceType;


/**
 * author Pascal Knueppel 
* created at: 17.10.2019 - 22:41
*
* Represents the standard {@link ResourceType} endpoint definition that is registered on the fly. But if * wanted the registration can also be overridden with a new implementation */ public class ServiceProviderEndpointDefinition extends EndpointDefinition { /** * @param serviceProvider each created * {@link de.captaingoldfish.scim.sdk.server.endpoints.ResourceEndpointHandler} must get hold of a * single * {@link ServiceProvider} instance which is shared with this object. so both instances need * to hold the same * object reference in order for the application to work correctly */ public ServiceProviderEndpointDefinition(ServiceProvider serviceProvider) { super(JsonHelper.loadJsonDocument(ClassPathReferences.SERVICE_PROVIDER_RESOURCE_TYPE_JSON), JsonHelper.loadJsonDocument(ClassPathReferences.META_SERVICE_PROVIDER_JSON), null, new ServiceProviderHandler(serviceProvider)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy