package org.jboss.as.console.client.shared.subsys.jca.model;

import org.jboss.as.console.client.shared.properties.PropertyRecord;
import org.jboss.as.console.client.widgets.forms.Address;
import org.jboss.as.console.client.widgets.forms.Binding;

import java.util.List;

/**
 * @author Heiko Braun
 * @date 7/19/11
 */
@Address("/subsystem=resource-adapters/resource-adapter={0}")
public interface ResourceAdapter {

    @Binding(key = true)
    String getName();
    void setName(String name);

    String getArchive();
    void setArchive(String archive);

    String getModule();
    void setModule(String module);

    @Binding(detypedName = "transaction-support")
    String getTransactionSupport();
    void setTransactionSupport(String txSupport);

    @Binding(skip = true)
    List<PropertyRecord> getProperties();
    void setProperties(List<PropertyRecord> props);

    @Binding(skip = true)
    void setConnectionDefinitions(List<ConnectionDefinition> connections);
    List<ConnectionDefinition> getConnectionDefinitions();

    @Binding(skip=true)
    List<AdminObject> getAdminObjects();
    void setAdminObjects(List<AdminObject> admins);

}
