A variant on the
Container interface that passes on criterions
passed to the
Resolver resolver it
ResolverProvider.getResolver provides to the adapters that are
registered with it.
Other than this minor difference, the
Container same underlyingconcepts and the same contracts that apply to Containers apply
to KeyRelayingContainers as well.
See Also:org.jicarilla.container.builder.DefaultBuilder See Also: for a helper class See Also: that makes it easier to create and populate container instances author: Leo Simons version: $Id: KeyRelayingContainer.java,v 1.6 2004/03/23 13:37:51 lsimons Exp $
registerAdapter(Object key, KeyAwareAdapter adapter) Add a new
KeyAwareAdapter to this container.
Parameters: key - the criterion that will be used to test whether theprovided adapter can be used to provide an instancefor a requested key. Parameters: adapter - a KeyAwareAdapter that will be used to help thiscontainer fulfill its ResolverProvider contract.
Add a new
KeyAwareAdapter to this container.
Parameters: selector - the Selector that will be used to testwhether the provided adapter can be used to provide an instancefor a key requested from the Resolver returned fromthis container its ResolverProvider.getResolvermethod. Parameters: adapter - a KeyAwareAdapter that will be used to help thiscontainer fulfill its ResolverProvider contract. this container. throws: IllegalSelectorException - if the provided selector is notsupported by this container (if it is null, for example, orif it is not aorg.jicarilla.lang.CriterionExposingSelector andthe container requires it to be). throws: IllegalAdapterException - if the provided adapter is notsupported by this container (if it is null, for example, orif it is not of some subtype that this container requires). throws: KeyAlreadyRegisteredException - if the criterion exposed by aprovided selector or a provided key itself is already registered andthe container does not support duplicate keys. throws: JicarillaException - if a miscellaneous exception occurs (aninternal container error or an assertion failure, for example).
Add a new
KeyAwareAdapter to this container.
Parameters: key - the criterion that will be used to test whether theprovided adapter can be used to provide an instancefor a requested key. Parameters: adapter - a KeyAwareAdapter that will be used to help thiscontainer fulfill its ResolverProvider contract. this container. throws: IllegalAdapterException - if the provided adapter is notsupported by this container (if it is null, for example, orif it is not of some subtype that this container requires). throws: KeyAlreadyRegisteredException - if the criterion exposed by aprovided selector or a provided key itself is already registered andthe container does not support duplicate keys. throws: JicarillaException - if a miscellaneous exception occurs (aninternal container error or an assertion failure, for example).