package org.jboss.system.pm;
import javax.management.AttributeList;
import org.jboss.mx.persistence.AttributePersistenceManager;
import org.w3c.dom.Element;
public class NullAttributePersistenceManager
implements AttributePersistenceManager
{
private boolean isCreated = false;
public void create(String version, Element config)
throws Exception
{
isCreated = true;
}
public boolean getState()
{
return isCreated;
}
public void destroy()
{
isCreated = false;
}
public boolean exists(String id)
throws Exception
{
return false;
}
public AttributeList load(String id)
throws Exception
{
return null;
}
public void store(String id, AttributeList attrs)
throws Exception
{
}
public void remove(String id)
throws Exception
{
}
public void removeAll()
throws Exception
{
}
public String[] listAll()
throws Exception
{
return new String[0];
}
}