|
PicoContainer example source code file (AbstractDelegatingMutablePicoContainer.java)
The PicoContainer AbstractDelegatingMutablePicoContainer.java 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 Other PicoContainer examples (source code examples)Here is a short list of links related to this PicoContainer AbstractDelegatingMutablePicoContainer.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.