001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 */
011package org.apache.juneau.commons.inject;
012
013/**
014 * Lightweight provider interface equivalent to JSR-330 provider contracts.
015 *
016 * @param <T> The provided type.
017 */
018@FunctionalInterface
019public interface Provider<T> {
020
021   /**
022    * Returns the value.
023    *
024    * @return The value.
025    */
026   T get();
027}
028