main
 1using Castle.MicroKernel.Registration;
 2
 3namespace gorilla.commons.infrastructure.thirdparty.Castle.Windsor.Configuration
 4{
 5    public class RegisterComponentContract : RegistrationConfiguration
 6    {
 7        public void configure(ComponentRegistration registration)
 8        {
 9            var implementation = registration.Implementation;
10            if (implementation.GetInterfaces().Length == 0)
11            {
12                registration.For(implementation);
13            }
14        }
15    }
16}