org.mule.runtime.config.spring.internal.LazyComponentInitializer 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.spring.internal;
import org.mule.runtime.api.component.location.Location;
import org.mule.runtime.api.exception.MuleRuntimeException;
/**
* Initializer for the creation of lazy resources.
*
* @since 4.0
*/
public interface LazyComponentInitializer {
/**
* Calling this method guarantees that the requested component from the configuration will be created and
* initialized.
*
* The requested component must exists in the configuration.
*
* @param location the location of the configuration component.
* @throws MuleRuntimeException if there's a problem creating the component or the component does not exists.
*/
void initializeComponent(Location location);
/**
* Calling this method guarantees that the requested component from the configuration will be created.
*
* The requested component must exists in the configuration.
*
* @param location the location of the configuration component.
* @throws MuleRuntimeException if there's a problem creating the component or the component does not exists.
*/
void createComponent(Location location);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy