Interface IUnreferenceable


public interface IUnreferenceable
Interface for components that require explicit clearing of references to dependent components.

### Example ###

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

     public void unsetReferences() {
       this._persistence = null;
     }
     ...
  }
  
  
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Unsets (clears) previously set references to dependent components.
  • Method Details

    • unsetReferences

      void unsetReferences()
      Unsets (clears) previously set references to dependent components.