Class Scopelet<S extends Scopelet<S>>

java.lang.Object
org.microbean.scopelet.Scopelet<S>
All Implemented Interfaces:
AutoCloseable, Constable, org.microbean.bean.Aggregate, org.microbean.bean.Factory<S>, org.microbean.scope.ScopeMember
Direct Known Subclasses:
MapBackedScopelet, NoneScopelet

public abstract class Scopelet<S extends Scopelet<S>> extends Object implements AutoCloseable, org.microbean.bean.Factory<S>, org.microbean.scope.ScopeMember
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Scopelet(org.microbean.qualifier.NamedAttributeMap<?> scopeId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    final org.microbean.bean.Bean<S>
     
    void
     
    protected final boolean
     
    boolean
     
    final S
    create(org.microbean.bean.Creation<S> c, org.microbean.bean.ReferenceSelector referenceSelector)
     
    boolean
     
    boolean
    equals(Object other)
     
    <I> I
    get(Object id)
     
    final boolean
    governedBy(org.microbean.qualifier.NamedAttributeMap<?> scopeId)
     
    final org.microbean.qualifier.NamedAttributeMap<?>
     
    int
     
    abstract org.microbean.bean.Id
    id()
     
    abstract <I> I
    instance(Object id, org.microbean.bean.Factory<I> factory, org.microbean.bean.Creation<I> c, org.microbean.bean.ReferenceSelector r)
     
    abstract boolean
     
    final org.microbean.qualifier.NamedAttributeMap<?>
     
    final S
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.microbean.bean.Factory

    dependencies, describeConstable, destroy
  • Constructor Details

    • Scopelet

      protected Scopelet(org.microbean.qualifier.NamedAttributeMap<?> scopeId)
  • Method Details

    • id

      public abstract org.microbean.bean.Id id()
    • bean

      public final org.microbean.bean.Bean<S> bean()
    • create

      public final S create(org.microbean.bean.Creation<S> c, org.microbean.bean.ReferenceSelector referenceSelector)
      Specified by:
      create in interface org.microbean.bean.Factory<S extends Scopelet<S>>
    • singleton

      public final S singleton()
      Specified by:
      singleton in interface org.microbean.bean.Factory<S extends Scopelet<S>>
    • destroys

      public boolean destroys()
      Specified by:
      destroys in interface org.microbean.bean.Factory<S extends Scopelet<S>>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • governingScopeId

      public final org.microbean.qualifier.NamedAttributeMap<?> governingScopeId()
      Specified by:
      governingScopeId in interface org.microbean.scope.ScopeMember
    • governedBy

      public final boolean governedBy(org.microbean.qualifier.NamedAttributeMap<?> scopeId)
      Specified by:
      governedBy in interface org.microbean.scope.ScopeMember
    • scopeId

      public final org.microbean.qualifier.NamedAttributeMap<?> scopeId()
    • active

      public boolean active()
    • containsId

      public boolean containsId(Object id)
    • get

      public <I> I get(Object id)
    • instance

      public abstract <I> I instance(Object id, org.microbean.bean.Factory<I> factory, org.microbean.bean.Creation<I> c, org.microbean.bean.ReferenceSelector r)
    • remove

      public abstract boolean remove(Object id)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • closed

      protected final boolean closed()