001/*****************************************************************************
002 * Copyright (c) PicoContainer Organization. All rights reserved.            *
003 * ------------------------------------------------------------------------- *
004 * The software in this package is published under the terms of the BSD      *
005 * style license a copy of which has been included with this distribution in *
006 * the LICENSE.txt file.                                                     *
007 *                                                                           *
008 *****************************************************************************/
009package org.picocontainer.containers;
010
011import org.picocontainer.PicoContainer;
012
013/**
014 * A container backed by system properties (is a PropertiesPicoContainer)
015 * @author Konstantin Pribluda
016 */
017@SuppressWarnings("serial")
018public class SystemPropertiesPicoContainer extends PropertiesPicoContainer {
019
020        public SystemPropertiesPicoContainer() {
021                this(null);
022        }
023        public SystemPropertiesPicoContainer(PicoContainer parent) {
024                super(System.getProperties(),parent);
025        }
026
027    @Override
028    public String toString() {
029        return "[SysProps]:" + super.getDelegate().toString();
030    }
031
032
033}