Optional to allow for injection of a service if it exists or else Optional#EMPTY. It will also allow for injection of an Optional directly as well.
| Modifier and Type | Field and Description |
|---|---|
| private Injectee | |
| private ServiceLocatorImpl |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Optional | create(ServiceHandle<?> root)
Implements org. Creates an instance of the ActiveDescriptor. |
| public Class | getImplementationClass()
Implements org. The implementation class that should be used to generate new instances of this descriptor. |
| public Type | getImplementationType()
Implements org. If known the Type of the implementation. |
| injectee | back to summary |
|---|---|
| private Injectee injectee | |
| locator | back to summary |
|---|---|
| private ServiceLocatorImpl locator | |
| OptionalActiveDescriptor | back to summary |
|---|---|
| public OptionalActiveDescriptor() For serialization | |
| OptionalActiveDescriptor | back to summary |
|---|---|
| pack-priv OptionalActiveDescriptor(Injectee injectee, ServiceLocatorImpl locator) | |
| create | back to summary |
|---|---|
| public Optional Implements org. Doc from org. Creates an instance of the ActiveDescriptor. All of the Injectee's must be created prior to instantiation, and associated with the ExtendedProvider so that they can be destroyed properly
| |
| getImplementationClass | back to summary |
|---|---|
| public Class Implements org. Doc from org. The implementation class that should be used to generate new instances of this descriptor. If the class returned is a Factory, then the factory is used to create instances. In this case the system will get an instance of the factory and use it to create the instances
| |
| getImplementationType | back to summary |
|---|---|
| public Type getImplementationType() Implements org. Doc from org. If known the Type of the implementation. If unknown will
return the same as
| |