org.mule.runtime.config.internal.MuleArtifactObjectProvider Maven / Gradle / Ivy
/*
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.runtime.config.internal;
import static java.util.Optional.empty;
import static java.util.Optional.of;
import org.mule.runtime.api.ioc.ObjectProvider;
import org.mule.runtime.api.component.AbstractComponent;
import java.util.Map;
import java.util.Optional;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
/**
* {@link ObjectProvider} implementation of the mule artifact so other DI plugins can access the artifact object.
*
* @since 4.0
*/
class MuleArtifactObjectProvider extends AbstractComponent implements ObjectProvider {
private final MuleArtifactContext muleArtifactContext;
MuleArtifactObjectProvider(MuleArtifactContext muleArtifactContext) {
this.muleArtifactContext = muleArtifactContext;
}
@Override
public Optional