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

io.dinject.core.BeanContextFactory Maven / Gradle / Ivy

There is a newer version: 2.3
Show newest version
package io.dinject.core;

import io.dinject.BeanContext;

/**
 * This is the service loader interface defining the bean contexts that can be created.
 */
public interface BeanContextFactory {

  /**
   * Return the name of the bean context (module) this will create.
   */
  String getName();

  /**
   * Return the name of module features this module provides.
   */
  String[] getProvides();

  /**
   * Return the names of bean contexts (modules) that this is dependent on (they need to be built before this one).
   */
  String[] getDependsOn();

  /**
   * Create and return the BeanContext.
   */
  BeanContext createContext(Builder parent);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy