Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Spring injection in WinForms with attributes

, 7 Apr 2009
Library for injection of Spring objects in WinForms, without references to IApplicationContext or Spring.
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
using System;
using System.Collections.Generic;
using System.Text;

namespace TestSpringAttribute
{
    public class TestObjectDao
    {
        public TestObjectDao()
        {
        }

        public String GetNameFromDb()
        {
            return "Injected correctly the TestObjectDao";
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0

Share

About the Author

cruz.fernandez
Software Developer Teracode BA SA
Argentina Argentina
No Biography provided

| Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 7 Apr 2009
Article Copyright 2009 by cruz.fernandez
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid