Interface IReferenceable

All Known Implementing Classes:
DependencyResolver

public interface IReferenceable
Interface for components that depends on other components.

If component requires explicit notification to unset references it shall additionally implement IUnreferenceable interface.

### Example ###

 
  public class MyController implements IReferenceable {
     public IMyPersistence _persistence;
     ...
     public void setReferences(IReferences references) {
       this._persistence = (IMyPersistence)references.getOneRequired(
         new Descriptor("mygroup", "persistence", "*", "*", "1.0")
       );
     }
     ...
  }
  
  
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sets references to dependent components.