use of jakarta.annotation.PostConstruct in project jans by JanssenProject.
the class SchemaWebService method setup.
@PostConstruct
public void setup() {
// Do not use getClass() here... a typical weld issue...
endpointUrl = appConfiguration.getBaseEndpoint() + SchemaWebService.class.getAnnotation(Path.class).value();
List<Class<? extends BaseScimResource>> excludedResources = Arrays.asList(SchemaResource.class, ResourceType.class, ServiceProviderConfig.class);
resourceSchemas = new HashMap<>();
// Fill map with urn vs. resource
for (Class<? extends BaseScimResource> cls : IntrospectUtil.allAttrs.keySet()) {
if (!excludedResources.contains(cls)) {
resourceSchemas.put(ScimResourceUtil.getDefaultSchemaUrn(cls), cls);
for (Extension extension : extService.getResourceExtensions(cls)) resourceSchemas.put(extension.getUrn(), cls);
}
}
}
Aggregations