![JAR search and dependency download from the Maven repository](/logo.png)
io.imunity.vaadin.auth.services.ServiceControllersRegistry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unity-server-vaadin-authentication Show documentation
Show all versions of unity-server-vaadin-authentication Show documentation
Vaadin login view and components
/*
* Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package io.imunity.vaadin.auth.services;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import pl.edu.icm.unity.engine.api.utils.TypesRegistryBase;
/**
* Maintains a simple registry of available
* {@link ServiceController}s.
*
* @author P.Piernik
*
*/
@Component("ServiceControllersRegistry")
public class ServiceControllersRegistry extends TypesRegistryBase
{
@Autowired
public ServiceControllersRegistry(Optional> typeElements)
{
super(typeElements.orElseGet(ArrayList::new));
}
@Override
protected String getId(ServiceController from)
{
return from.getSupportedEndpointType();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy