Interface Injector<T>

Type Parameters:
T - referenced writable dependency type
All Known Implementing Classes:
InjectedValue, ManagedReferenceInjector

@Deprecated public interface Injector<T>
Deprecated.
Use ServiceBuilder.provides(org.jboss.msc.service.ServiceName...) method instead. This class will be removed in a future release.
Reference to a writable dependency.

Implementations of this interface are thread safe.

Author:
David M. Lloyd, Richard Opalka
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    inject(T value)
    Deprecated.
    Inject the given value.
    void
    Deprecated.
    Uninject the given value (in other words, cancel or undo a previous injection).
  • Method Details

    • inject

      void inject(T value) throws InjectionException
      Deprecated.
      Inject the given value.
      Parameters:
      value - the value
      Throws:
      InjectionException - if the injection failed
    • uninject

      void uninject()
      Deprecated.
      Uninject the given value (in other words, cancel or undo a previous injection). Only called after inject() has been called.