Class NoneScopelet
- All Implemented Interfaces:
AutoCloseable,Constable,Aggregate,Factory<NoneScopelet>
A
Scopelet implementation that does not cache objects at all.- Author:
- Laird Nelson
-
Field Summary
Fields inherited from class org.microbean.scopelet.Scopelet
APPLICATION_ID, NONE_ID, SCOPE, SINGLETON_IDFields 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, close, closed, create, destroys, remove, singletonMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.microbean.bean.Aggregate
assign, dependencies
-
Constructor Details
-
NoneScopelet
public NoneScopelet()Creates a newNoneScopelet.
-
-
Method Details
-
instance
Description copied from class:ScopeletChecks to see if thisScopeletis active and then returns a pre-existing or created-on-demand contextual instance suitable for the combination of identifier,FactoryandCreation, ornull- Specified by:
instancein classScopelet<NoneScopelet>- Type Parameters:
I- the type of contextual instance- Parameters:
ignoredBeanId- an identifier that can identify a contextual instance; may benullfactory- aFactory; may benullcreation- aCreation, 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 - See Also:
-
describeConstable
- Specified by:
describeConstablein interfaceConstable- Specified by:
describeConstablein interfaceFactory<NoneScopelet>
-