DefaultOverdueService.java

44 lines | 1.233 kB Blame History Raw Download
/*
 * Copyright 2010-2011 Ning, Inc.
 *
 * Ning licenses this file to you 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.ning.billing.overdue.service;

import com.google.inject.Inject;
import com.ning.billing.overdue.OverdueService;
import com.ning.billing.overdue.OverdueUserApi;

public class DefaultOverdueService implements OverdueService {
    public static final String OVERDUE_SERVICE_NAME = "overdue-service";
    private OverdueUserApi userApi;

    @Inject
    public DefaultOverdueService(OverdueUserApi userApi){
        this.userApi = userApi;
    }
    
    @Override
    public String getName() {
        return OVERDUE_SERVICE_NAME;
    }

    @Override
    public OverdueUserApi getUserApi() {
        return userApi;
    }

   
}