Class Wiring
java.lang.Object
com.codename1.backend.Wiring
What the build-generated wiring calls: configuration placeholders, the
conversions a @Value needs, and the conditions of conditional beans.
Everything here runs once, at start-up, from straight-line code the build wrote. None of it looks up a bean: the build already decided which bean goes where.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceWhere a request- or session-scoped bean's current instance comes from, for the generated class that stands in for it in a singleton. -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddestroyFailed(String bean, Throwable error) Reports a destroy method that failed; the others still run.static ListThe beans ofitemsthat exist, for aListinjection point.static ObjectThe first ofcandidates-- a conditional @Primary -- when it exists, otherwise the one of the rest that does, assingle(Object[], boolean, String)picks it.static ObjectWhat a@Beanmethod returned, refused when it is null: a factory that produces nothing is a bug in the factory, and handing the null to what injects it would only move the failure to its first use.static booleanWhether any of the profiles, each optionally negated with!, is active.static StringThe first of the keys that is set, or null.static booleanpropertyMatches(Config config, String key, String havingValue, boolean matchIfMissing) @ConditionalOnProperty: whether the key's value matches.static ObjectThe one bean ofcandidatesthat exists, when all of them are conditional.static booleanstatic bytestatic charstatic doublestatic ObjectThe constant of an enum by name;valuesis the enum's values().static floatstatic intstatic longstatic shortstatic StringResolves every${key} and${key:fallback} inexpressionagainst the configuration, keeping the text around them.
-
Method Details
-
value
-
property
-
profiles
-
propertyMatches
-
produced
-
preferred
The first ofcandidates-- a conditional @Primary -- when it exists, otherwise the one of the rest that does, assingle(Object[], boolean, String)picks it. -
single
-
list
-
toInt
-
toLong
-
toShort
-
toByte
-
toDouble
-
toFloat
-
toChar
-
toBoolean
-
toEnum
-
destroyFailed
-