Bug 5421 - Single cluster-wide service API
[mdsal.git] / singleton-service / mdsal-singleton-common-api / src / main / java / org / opendaylight / mdsal / singleton / common / api / ServiceGroupIdentifier.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.mdsal.singleton.common.api;
10
11 import org.opendaylight.yangtools.util.AbstractStringIdentifier;
12
13 /**
14  * Identifier represents a service group competence. It's based on String.
15  */
16 public class ServiceGroupIdentifier extends AbstractStringIdentifier<ServiceGroupIdentifier> {
17
18     /**
19      * Method create immutable instance of {@link ServiceGroupIdentifier}
20      *
21      * @param serviceGroupIdentifier
22      * @return {@link ServiceGroupIdentifier} instance
23      */
24     public static ServiceGroupIdentifier create(final String serviceGroupIdentifier) {
25         return new ServiceGroupIdentifier(serviceGroupIdentifier);
26     }
27
28     protected ServiceGroupIdentifier(final String string) {
29         super(string);
30     }
31
32     private static final long serialVersionUID = 6853612584804702662L;
33
34 }