|
What this is
Other links
The source code
/*****************************************************************************
* Copyright (C) PicoContainer Organization. All rights reserved. *
* ------------------------------------------------------------------------- *
* The software in this package is published under the terms of the BSD *
* style license a copy of which has been included with this distribution in *
* the LICENSE.txt file. *
* *
* Original code by the committers *
*****************************************************************************/
package org.picocontainer.containers;
import org.picocontainer.ComponentAdapter;
import org.picocontainer.MutablePicoContainer;
import org.picocontainer.Parameter;
import org.picocontainer.PicoContainer;
import org.picocontainer.PicoException;
import org.picocontainer.PicoVisitor;
import org.picocontainer.PicoCompositionException;
import org.picocontainer.ParameterName;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Properties;
/**
* @author Paul Hammant
* @version $Revision: 3693 $
*/
public abstract class AbstractDelegatingMutablePicoContainer implements MutablePicoContainer, Serializable {
private MutablePicoContainer delegate;
public AbstractDelegatingMutablePicoContainer(MutablePicoContainer delegate) {
if (delegate == null) {
throw new NullPointerException("MutablePicoContainer delegate must not be null");
}
this.delegate = delegate;
}
protected MutablePicoContainer getDelegate() {
return delegate;
}
public MutablePicoContainer addComponent(Object componentKey,
Object componentImplementationOrInstance,
Parameter... parameters) throws PicoCompositionException {
return delegate.addComponent(componentKey, componentImplementationOrInstance, parameters);
}
public MutablePicoContainer addComponent(Object implOrInstance) throws PicoCompositionException {
return delegate.addComponent(implOrInstance);
}
public MutablePicoContainer addConfig(String name, Object val) {
return delegate.addConfig(name, val);
}
public MutablePicoContainer addAdapter(ComponentAdapter componentAdapter) throws PicoCompositionException {
return delegate.addAdapter(componentAdapter);
}
public ComponentAdapter removeComponent(Object componentKey) {
return delegate.removeComponent(componentKey);
}
public ComponentAdapter removeComponentByInstance(Object componentInstance) {
return delegate.removeComponentByInstance(componentInstance);
}
public Object getComponent(Object componentKeyOrType) {
return delegate.getComponent(componentKeyOrType);
}
public <T> T getComponent(Class
|
Copyright 1998-2008 Alvin Alexander
All Rights Reserved.
devdaily.com is based in louisville, kentucky, and this web site is hosted by godaddy.com