ln.manage/EmptyProvider.cs

40 lines
1.3 KiB
C#

// /**
// * File: EmptyProvider.cs
// * Author: haraldwolff
// *
// * This file and it's content is copyrighted by the Author and / or copyright holder.
// * Any use wihtout proper permission is illegal and may lead to legal actions.
// *
// *
// **/
using System;
using System.Collections.Generic;
using ln.json;
using ln.types.btree;
namespace ln.manage
{
public class EmptyProvider : ManagedObjectProvider
{
public EmptyProvider(String name)
: this(name, null) { }
public EmptyProvider(String name, ManagedObjectProvider container)
: base(null, name, container)
{
}
public override JSONObject CreateJsonDescriptor()
{
JSONObject descriptor = base.CreateJsonDescriptor();
descriptor["cosmetic"] = true;
return descriptor;
}
public override void Disable(object o) => throw new NotSupportedException();
public override void Enable(object o) => throw new NotSupportedException();
public override object GetManagedObject(object uniqueIdentifier) => throw new NotSupportedException();
public override ManagedObjectState GetManagedObjectState(object o) => throw new NotSupportedException();
public override void RemoveObject(object o) => throw new NotSupportedException();
}
}