com.jivesoftware.os.upena.shared.Stored.java Source code

Java tutorial

Introduction

Here is the source code for com.jivesoftware.os.upena.shared.Stored.java

Source

/*
 * Copyright 2013 Jive Software, Inc
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.jivesoftware.os.upena.shared;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "objectType")
@JsonSubTypes({ @JsonSubTypes.Type(value = LBKey.class, name = "loadBalancerKey"),
        @JsonSubTypes.Type(value = ClusterKey.class, name = "branchKey"),
        @JsonSubTypes.Type(value = Cluster.class, name = "branch"),
        @JsonSubTypes.Type(value = HostKey.class, name = "hostKey"),
        @JsonSubTypes.Type(value = Host.class, name = "host"),
        @JsonSubTypes.Type(value = ServiceKey.class, name = "serviceKey"),
        @JsonSubTypes.Type(value = Service.class, name = "service"),
        @JsonSubTypes.Type(value = ReleaseGroupKey.class, name = "userKey"),
        @JsonSubTypes.Type(value = ReleaseGroup.class, name = "user"),
        @JsonSubTypes.Type(value = InstanceKey.class, name = "instanceKey"),
        @JsonSubTypes.Type(value = Instance.class, name = "instance"),
        @JsonSubTypes.Type(value = TenantKey.class, name = "tenantKey"),
        @JsonSubTypes.Type(value = Tenant.class, name = "tenant"),
        @JsonSubTypes.Type(value = MonkeyKey.class, name = "monkeyKey"),
        @JsonSubTypes.Type(value = Monkey.class, name = "monkey"),
        @JsonSubTypes.Type(value = ChaosStateKey.class, name = "chaosStateKey"),
        @JsonSubTypes.Type(value = ChaosState.class, name = "chaosState") })
public interface Stored<S> extends Comparable<S> {
    // Marker
}