org.odpi.openmetadata.accessservices.subjectarea.server.SubjectAreaRegistration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of subject-area-server Show documentation
Show all versions of subject-area-server Show documentation
Server-side support for the Subject Area Open Metadata Access Service (OMAS).
/* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.subjectarea.server;
import org.odpi.openmetadata.accessservices.subjectarea.admin.SubjectAreaAdmin;
import org.odpi.openmetadata.adminservices.configuration.OMAGAccessServiceRegistration;
import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription;
import org.odpi.openmetadata.adminservices.configuration.registration.ServiceOperationalStatus;
import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceRegistration;
/**
* SubjectAreaRegistration registers the access service with the OMAG Server administration services.
* This registration must be driven once at server start up. The OMAG Server administration services
* then use this registration information as confirmation that there is an implementation of this
* access service in the server and it can be configured and used.
*/
public class SubjectAreaRegistration
{
/**
* Pass information about this access service to the OMAG Server administration services.
*/
public static void registerAccessService()
{
AccessServiceDescription myDescription = AccessServiceDescription.SUBJECT_AREA_OMAS;
AccessServiceRegistration myRegistration = new AccessServiceRegistration(myDescription,
ServiceOperationalStatus.ENABLED,
SubjectAreaAdmin.class.getName());
OMAGAccessServiceRegistration.registerAccessService(myRegistration);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy