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

org.jboss.as.ee.component.ComponentCreateServiceFactory Maven / Gradle / Ivy

There is a newer version: 35.0.0.Beta1
Show newest version
/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.jboss.as.ee.component;

/**
 * A factory for component creation which allows component behavior customization.
 *
 * @author David M. Lloyd
 */
public interface ComponentCreateServiceFactory {

    /**
     * Construct a new component creation service from the given configuration.
     *
     * @param configuration the configuration
     * @return the create service
     */
    BasicComponentCreateService constructService(ComponentConfiguration configuration);

    /**
     * The default, basic component create service factory.
     */
    ComponentCreateServiceFactory BASIC = new ComponentCreateServiceFactory() {
        public BasicComponentCreateService constructService(final ComponentConfiguration configuration) {
            return new BasicComponentCreateService(configuration);
        }
    };
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy