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
ModifierConstructorDescriptionprotected
Scopelet
(org.microbean.qualifier.NamedAttributeMap<?> scopeId) -
Method Summary
Modifier and TypeMethodDescriptionboolean
active()
final org.microbean.bean.Bean
<S> bean()
void
close()
protected final boolean
closed()
boolean
containsId
(Object id) final S
boolean
destroys()
boolean
<I> I
final boolean
governedBy
(org.microbean.qualifier.NamedAttributeMap<?> scopeId) final org.microbean.qualifier.NamedAttributeMap
<?> int
hashCode()
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
<?> scopeId()
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
-
-
Method Details
-
id
-
bean
-
create
-
singleton
-
destroys
-
hashCode
-
equals
-
governingScopeId
- Specified by:
governingScopeId
in interfaceorg.microbean.scope.ScopeMember
-
governedBy
- Specified by:
governedBy
in interfaceorg.microbean.scope.ScopeMember
-
scopeId
-
active
-
containsId
-
get
-
instance
-
remove
-
close
- Specified by:
close
in interfaceAutoCloseable
-
closed
-