Interface RegisterFactoryEvent

    • Method Detail

      • register

        <T> T register​(Class<T> factoryClass,
                       T factory)
                throws DuplicateRegistrationException
        Registers an object meant to be used to churn object references
        Type Parameters:
        T - The type
        Parameters:
        factoryClass - The factory type
        factory - The factory instance
        Returns:
        The provided factory
        Throws:
        DuplicateRegistrationException - If the type is already registered