Class BlueMindCalendarPrecedence
Every calendar registry of the host collects its contributions with
ObjectProvider.orderedStream() and lets the first one win: the
first flavour that recognises a registration, the first share channel that
applies, the first subscription channel that names a principal, the first
write-channel plugin for a channel, the first server seed of an identifier. The host's own BlueMind contributions
state no order, which sorts them last (Ordered.LOWEST_PRECEDENCE);
the add-on's state ORDER, which sorts them first, so each registry
sees exactly one effective BlueMind contribution and it is the add-on's.
Stated through Ordered, not @Order: the bridge hands another
web application a CGLIB proxy of the contribution, and getOrder()
is a method the proxy forwards to the bean, so the order holds through the
proxy whatever comparator the host's bean factory uses. The contributions'
bean names differ from the host's for the same reason the order exists:
the bridge never exports a bean into a context that already holds one of
that name, and the host's context holds the host's.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAhead of every contribution that states no order, with room left ahead of it. -
Method Summary
-
Field Details
-
ORDER
public static final int ORDERAhead of every contribution that states no order, with room left ahead of it.- See Also:
-