Skip to content

Commit

Permalink
Constants: Fix help link for exceptions and tidy up class
Browse files Browse the repository at this point in the history
  • Loading branch information
jonorossi committed Oct 25, 2018
1 parent 34dcf9b commit 49aa6d2
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/Castle.Windsor/Core/Internal/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,32 @@

namespace Castle.Core.Internal
{
public abstract class Constants
public static class Constants
{
private const string defaultComponentForServiceFilter = "castle.default-component-for-service-filter";
private const string fallbackComponentForServiceFilter = "castle.fallback-component-for-service-filter";
private const string genericImplementationMatchingStrategy = "castle.generic-matching-strategy";
private const string genericServiceStrategy = "castle.generic-service-strategy";
private const string helpLink = @"groups.google.com/group/castle-project-users";

private const string propertyFilters = "castle.property-filters";
private const string scopeAccessorType = "castle.scope-accessor-type";
private const string scopeRootSelector = "castle.scope-root";

public static object DefaultComponentForServiceFilter
public static string DefaultComponentForServiceFilter
{
get { return defaultComponentForServiceFilter; }
}

public static string ExceptionHelpLink
{
get { return helpLink; }
get { return "http://www.castleproject.org/"; }
}

public static object FallbackComponentForServiceFilter
public static string FallbackComponentForServiceFilter
{
get { return fallbackComponentForServiceFilter; }
}


public static string GenericImplementationMatchingStrategy
{
get { return genericImplementationMatchingStrategy; }
Expand All @@ -52,17 +50,17 @@ public static string GenericServiceStrategy
get { return genericServiceStrategy; }
}

public static object PropertyFilters
public static string PropertyFilters
{
get { return propertyFilters; }
}

public static object ScopeAccessorType
public static string ScopeAccessorType
{
get { return scopeAccessorType; }
}

public static object ScopeRootSelector
public static string ScopeRootSelector
{
get { return scopeRootSelector; }
}
Expand Down

0 comments on commit 49aa6d2

Please sign in to comment.