Class NoneScopelet
- All Implemented Interfaces:
AutoCloseable
,Constable
,Aggregate
,Factory<NoneScopelet>
,ScopeMember
A
Scopelet
implementation that does not cache objects at all.- Author:
- Laird Nelson
-
Field Summary
Fields inherited from interface org.microbean.bean.Aggregate
EMPTY_ASSIGNMENTS, EMPTY_DEPENDENCIES
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.microbean.scopelet.Scopelet
active, bean, close, closed, containsId, create, destroys, equals, get, governedBy, governingScopeId, hashCode, instance, remove, scopeId, singleton
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.microbean.bean.Aggregate
assign, dependencies
-
Constructor Details
-
NoneScopelet
Creates a newNoneScopelet
.- Parameters:
domain
- aDomain
; must not benull
- Throws:
NullPointerException
- ifdomain
isnull
-
-
Method Details
-
id
-
instance
Description copied from class:Scopelet
Checks to see if thisScopelet
is active and then returns a pre-existing or created-on-demand contextual instance suitable for the combination of identifier,Factory
andRequest
.- Specified by:
instance
in classScopelet<NoneScopelet>
- Type Parameters:
I
- the type of contextual instance- Parameters:
ignoredBeanId
- an identifier that can identify a contextual instance; may benull
factory
- aFactory
; may benull
request
- aRequest
, typically the one in effect that is causing this method to be invoked in the first place; may benull
- Returns:
- a contextual instance, possibly pre-existing, or possibly created just in time, or
null
-
describeConstable
- Specified by:
describeConstable
in interfaceConstable
- Specified by:
describeConstable
in interfaceFactory<NoneScopelet>
-