All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.util.CurrentInstanceFallbackResolver Maven / Gradle / Ivy

There is a newer version: 8.27.3
Show newest version
/*
 * Copyright (C) 2000-2024 Vaadin Ltd
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See  for the full
 * license.
 */

package com.vaadin.util;

import java.io.Serializable;

/**
 * Fallback that is used to revolve current instances when they are not
 * available by regular means.
 * 

* This interface is used internally by the framework and it's not meant for * public usage. * * @author Vaadin Ltd. * * @param * the type of the instances returned by this resolver * * @see CurrentInstance#get(Class) * @see CurrentInstance#defineFallbackResolver(Class, * CurrentInstanceFallbackResolver) * * @since 8.5.2 * */ public interface CurrentInstanceFallbackResolver extends Serializable { /** * Resolves a current instance for the type {@code T}. * * @return the current instance, or null if none can be found */ T resolve(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy