using System;
namespace Kreta.Framework.Entities
{
///
/// Az attribútum egy adott entitáshoz tartozó esemény kezelő osztályt azonosít.
///
///
/// Az attribútumot olyan osztályra kell tenni, amely megvalósítja az
/// felületet.
///
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
public sealed class EntityHandlerAttribute : Attribute
{
private string m_EntityName;
///
/// Az attribútum konstruktora.
///
/// Az entitás neve, amihez a kezelő tartozik
public EntityHandlerAttribute(string entityName)
{
m_EntityName = entityName;
}
///
/// Az entitás neve, amihez a kezelő tartozik.
///
public string EntityName
{
get
{
return m_EntityName;
}
}
}
}