org.picocontainer.extras
Class SynchronizedComponentAdapter
java.lang.Object
org.picocontainer.extras.DecoratingComponentAdapter
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SynchronizedComponentAdapter
public SynchronizedComponentAdapter(ComponentAdapter delegate)
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.