org.picocontainer.extras
Class SynchronizedComponentAdapter

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

public class SynchronizedComponentAdapter
extends DecoratingComponentAdapter

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

Constructor Summary
SynchronizedComponentAdapter(ComponentAdapter delegate)
           
 
Method Summary
 Class getComponentImplementation()
           
 Object getComponentInstance()
          Gets the component instance.
 Object getComponentKey()
           
 void verify()
          Verify that all dependencies for this adapter can be satisifed.
 
Methods inherited from class org.picocontainer.extras.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()
Specified by:
getComponentKey in interface ComponentAdapter
Overrides:
getComponentKey in class DecoratingComponentAdapter

getComponentImplementation

public Class getComponentImplementation()
Specified by:
getComponentImplementation in interface ComponentAdapter
Overrides:
getComponentImplementation in class DecoratingComponentAdapter

getComponentInstance

public Object getComponentInstance()
                            throws PicoInitializationException,
                                   PicoIntrospectionException
Description copied from interface: ComponentAdapter
Gets the component instance. This method will usually create a new instance for each call (an exception is CachingComponentAdapter).

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.

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


Copyright © 2003-2004 Codehaus. All Rights Reserved.