org.picocontainer.defaults
Class SynchronizedComponentAdapter

java.lang.Object
  extended byorg.picocontainer.defaults.DecoratingComponentAdapter
      extended byorg.picocontainer.defaults.SynchronizedComponentAdapter
All Implemented Interfaces:
ComponentAdapter, Serializable

public class SynchronizedComponentAdapter
extends DecoratingComponentAdapter

Version:
$Revision: 1.3 $
Author:
Aslak Hellesøy
See Also:
Serialized Form

Constructor Summary
SynchronizedComponentAdapter(ComponentAdapter delegate)
           
 
Method Summary
 Class getComponentImplementation()
          Retrieve the class of the component.
 Object getComponentInstance()
          Retrieve the component instance.
 Object getComponentKey()
          Retrieve the key associated with the component.
 void verify()
          Verify that all dependencies for this adapter can be satisifed.
 
Methods inherited from class org.picocontainer.defaults.DecoratingComponentAdapter
getContainer, getDelegate, setContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizedComponentAdapter

public SynchronizedComponentAdapter(ComponentAdapter delegate)
Method Detail

getComponentKey

public Object getComponentKey()
Description copied from interface: ComponentAdapter
Retrieve the key associated with the component.

Specified by:
getComponentKey in interface ComponentAdapter
Overrides:
getComponentKey in class DecoratingComponentAdapter

getComponentImplementation

public Class getComponentImplementation()
Description copied from interface: ComponentAdapter
Retrieve the class of the component.

Specified by:
getComponentImplementation in interface ComponentAdapter
Overrides:
getComponentImplementation in class DecoratingComponentAdapter

getComponentInstance

public Object getComponentInstance()
                            throws PicoInitializationException,
                                   PicoIntrospectionException
Description copied from interface: ComponentAdapter
Retrieve the component instance. This method will usually create a new instance each time it is called, but that is not required. For example, CachingComponentAdapter will always return the same instance.

Specified by:
getComponentInstance in interface ComponentAdapter
Overrides:
getComponentInstance in class DecoratingComponentAdapter
Throws:
PicoInitializationException
PicoIntrospectionException

verify

public void verify()
            throws UnsatisfiableDependenciesException
Description copied from interface: ComponentAdapter
Verify that all dependencies for this adapter can be satisifed. Normally, the adapter should verify this by checking that the associated PicoContainer contains all the needed dependnecies.

Specified by:
verify in interface ComponentAdapter
Overrides:
verify in class DecoratingComponentAdapter
Throws:
UnsatisfiableDependenciesException


Copyright © 2003-2004 Codehaus. All Rights Reserved.