| org.jicarilla.container.KeyAwareAdapter
All known Subclasses: org.jicarilla.container.integration.pico.PicoBasedKeyAwareComponentAdapter, org.jicarilla.container.integration.spring.SpringBasedKeyAwareComponentAdapter, org.jicarilla.container.integration.avalon.FortressBasedKeyAwareComponentAdapter, org.jicarilla.container.adapters.ResolverBasedKeyAwareAdapter, org.jicarilla.container.integration.dna.ResourceLocatorBasedKeyAwareComponentAdapter, org.jicarilla.container.adapters.AdapterBasedKeyAwareAdapter, org.jicarilla.container.integration.avalon.ServiceManagerBasedKeyAwareComponentAdapter,
KeyAwareAdapter | public interface KeyAwareAdapter (Code) | | A variant on the
Adapter interface designed to plug into a
KeyRelayingContainer that will return different instances from
KeyAwareAdapter.getInstance(Object) based on the key argument passed
to it.
Other than this minor difference, the
Adapter same underlyingconcepts and the same contracts that apply to Adapters apply
to KeyAwareAdapters as well.
author: Leo Simons version: $Id: KeyAwareAdapter.java,v 1.2 2004/01/08 14:51:59 lsimons Exp $ |
releaseInstance | void releaseInstance(Object instance) throws Exception(Code) | | Return the instance to this adapter. You should only return instances
to this adapter if you have received them through
KeyAwareAdapter.getInstance(Object) .
Parameters: instance - the instance to release. throws: Exception - if any kind of problem occurs releasing the instance.It is often considered safe to recover from this exception andcontinue normal application flow, but these exceptions shouldnever be discarded lightly. |
|
|