- Type Parameters:
I
- the type of instance being created
- All Known Subinterfaces:
Request<I>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A representation of a
Factory
's creation activity.- Author:
- Laird Nelson
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Signals that the suppliedinstance
has been created, typically by an invocation of aFactory
'screate(Request)
method, and is about to be made available for use.
-
Method Details
-
created
Signals that the suppliedinstance
has been created, typically by an invocation of aFactory
'screate(Request)
method, and is about to be made available for use.This method is typically invoked from within a
Factory.create(Request)
implementation immediately prior to its returning a value.It is permissible for an implementation of this method to do nothing.
- Parameters:
instance
- the instance that was created; must not benull
- Throws:
NullPointerException
- ifinstance
wasnull
and the implementation does not supportnull
argumentsIllegalArgumentException
- ifinstance
was found to be unsuitable for any reason- Idempotency:
- Implementations of this method must be idempotent.
- Thread Safety:
- Implementations of this method must be safe for concurrent use by multiple threads.
-