org.picocontainer.alternatives
Class ImplementationHidingComponentAdapter

java.lang.Object
  extended by org.picocontainer.defaults.DecoratingComponentAdapter
      extended by org.picocontainer.defaults.ImplementationHidingComponentAdapter
          extended by org.picocontainer.alternatives.ImplementationHidingComponentAdapter
All Implemented Interfaces:
java.io.Serializable, ComponentAdapter, ComponentMonitorStrategy, LifecycleStrategy, LifecycleManager

Deprecated. since 1.2, moved to package org.picocontainer.defaults

public class ImplementationHidingComponentAdapter
extends ImplementationHidingComponentAdapter

This component adapter makes it possible to hide the implementation of a real subject (behind a proxy) provided the key is an interface.

This class exists here, because a) it has no deps on external jars, b) dynamic proxy is quite easy. The user is prompted to look at picocontainer-gems for alternate and bigger implementations.

Since:
1.1
Author:
Aslak Hellesøy, Paul Hammant
See Also:
for a more feature-rich version of this class., Serialized Form

Constructor Summary
ImplementationHidingComponentAdapter(ComponentAdapter delegate, boolean strict)
          Deprecated. since 1.2, moved to package org.picocontainer.defaults
 
Method Summary
 
Methods inherited from class org.picocontainer.defaults.ImplementationHidingComponentAdapter
getComponentInstance
 
Methods inherited from class org.picocontainer.defaults.DecoratingComponentAdapter
accept, changeMonitor, currentMonitor, dispose, dispose, getComponentImplementation, getComponentKey, getDelegate, hasLifecycle, hasLifecycle, start, start, stop, stop, toString, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImplementationHidingComponentAdapter

public ImplementationHidingComponentAdapter(ComponentAdapter delegate,
                                            boolean strict)
Deprecated. since 1.2, moved to package org.picocontainer.defaults

Creates an ImplementationHidingComponentAdapter with a delegate

Parameters:
delegate - the component adapter to which this adapter delegates
strict - the scrict mode boolean