public class PriorityContext extends PriorityContextResolver implements io.flamingock.internal.common.core.context.Context
Context that combines a writable priority context
with a read-only fallback context.
Dependency resolution prioritizes the priorityInjectableContext, but dependency
injection operations (add/remove) only affect the priority context.
| Constructor and Description |
|---|
PriorityContext(io.flamingock.internal.common.core.context.Context priorityContext,
io.flamingock.internal.common.core.context.ContextResolver baseContext)
Creates a context that combines the given writable
priorityInjectableContext
with the given read-only baseContext. |
PriorityContext(io.flamingock.internal.common.core.context.ContextResolver baseContext)
Creates a context that combines a writable
SimpleContext
with a read-only fallback base context. |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(io.flamingock.internal.common.core.context.Dependency dependency)
Adds a dependency to the priority (writable) context.
|
void |
setProperty(io.flamingock.internal.util.Property value) |
void |
setProperty(java.lang.String key,
java.lang.Boolean value) |
void |
setProperty(java.lang.String key,
java.lang.Boolean[] value) |
void |
setProperty(java.lang.String key,
java.lang.Byte[] value) |
void |
setProperty(java.lang.String key,
java.lang.Character[] value) |
void |
setProperty(java.lang.String key,
java.nio.charset.Charset value) |
void |
setProperty(java.lang.String key,
java.util.Currency value) |
void |
setProperty(java.lang.String key,
java.util.Date value) |
void |
setProperty(java.lang.String key,
java.sql.Date value) |
void |
setProperty(java.lang.String key,
java.lang.Double value) |
void |
setProperty(java.lang.String key,
java.lang.Double[] value) |
void |
setProperty(java.lang.String key,
java.time.Duration value) |
void |
setProperty(java.lang.String key,
java.io.File value) |
void |
setProperty(java.lang.String key,
java.lang.Float value) |
void |
setProperty(java.lang.String key,
java.lang.Float[] value) |
void |
setProperty(java.lang.String key,
java.net.InetAddress value) |
void |
setProperty(java.lang.String key,
java.time.Instant value) |
void |
setProperty(java.lang.String key,
java.lang.Integer value) |
void |
setProperty(java.lang.String key,
java.lang.Integer[] value) |
void |
setProperty(java.lang.String key,
java.time.LocalDate value) |
void |
setProperty(java.lang.String key,
java.time.LocalDateTime value) |
void |
setProperty(java.lang.String key,
java.util.Locale value) |
void |
setProperty(java.lang.String key,
java.time.LocalTime value) |
void |
setProperty(java.lang.String key,
java.lang.Long value) |
void |
setProperty(java.lang.String key,
java.lang.Long[] value) |
void |
setProperty(java.lang.String key,
java.time.OffsetDateTime value) |
void |
setProperty(java.lang.String key,
java.time.OffsetTime value) |
void |
setProperty(java.lang.String key,
java.nio.file.Path value) |
void |
setProperty(java.lang.String key,
java.time.Period value) |
void |
setProperty(java.lang.String key,
java.lang.Short[] value) |
void |
setProperty(java.lang.String key,
java.lang.String value) |
void |
setProperty(java.lang.String key,
java.lang.String[] value) |
<T extends java.lang.Enum<T>> |
setProperty(java.lang.String key,
T value) |
void |
setProperty(java.lang.String key,
java.sql.Time value) |
void |
setProperty(java.lang.String key,
java.sql.Timestamp value) |
void |
setProperty(java.lang.String key,
java.net.URI value) |
void |
setProperty(java.lang.String key,
java.net.URL value) |
void |
setProperty(java.lang.String key,
java.util.UUID value) |
void |
setProperty(java.lang.String key,
java.time.ZonedDateTime value) |
getDependency, getDependency, getProperty, getPropertyAsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDependency, getDependency, getDependencyValue, getDependencyValue, getRequiredDependency, getRequiredDependency, getRequiredDependencyValue, getRequiredDependencyValuepublic PriorityContext(io.flamingock.internal.common.core.context.ContextResolver baseContext)
SimpleContext
with a read-only fallback base context.baseContext - the fallback context to be used when the dependency is not found in the priority contextpublic PriorityContext(io.flamingock.internal.common.core.context.Context priorityContext,
io.flamingock.internal.common.core.context.ContextResolver baseContext)
priorityInjectableContext
with the given read-only baseContext.priorityContext - the context where dependencies are added or removedbaseContext - the fallback context used only for resolutionpublic void addDependency(io.flamingock.internal.common.core.context.Dependency dependency)
addDependency in interface io.flamingock.internal.common.core.context.DependencyInjectabledependency - the dependency to addpublic void setProperty(io.flamingock.internal.util.Property value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.String value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.Boolean value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.Integer value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.Float value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.Long value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.Double value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.util.UUID value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.util.Currency value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.util.Locale value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.nio.charset.Charset value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.io.File value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.nio.file.Path value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.net.InetAddress value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.net.URL value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.net.URI value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.time.Duration value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.time.Period value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.time.Instant value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.time.LocalDate value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.time.LocalTime value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.time.LocalDateTime value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.time.ZonedDateTime value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.time.OffsetDateTime value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.time.OffsetTime value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.util.Date value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.sql.Date value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.sql.Time value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.sql.Timestamp value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.String[] value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.Integer[] value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.Long[] value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.Double[] value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.Float[] value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.Boolean[] value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.Byte[] value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.Short[] value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic void setProperty(java.lang.String key,
java.lang.Character[] value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectablepublic <T extends java.lang.Enum<T>> void setProperty(java.lang.String key,
T value)
setProperty in interface io.flamingock.internal.common.core.context.PropertyInjectable