blob: 39a7c2b33ca43047d151d01d9ea5984234579ca8 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.aries.tx.control.service.xa.impl;
import static org.apache.aries.tx.control.service.xa.impl.LocalResourceSupport.ENFORCE_SINGLE;
import org.osgi.service.metatype.annotations.AttributeDefinition;
import org.osgi.service.metatype.annotations.ObjectClassDefinition;
/**
* This will be more useful once the OSGi converter exists, for now it just
* generates a metatype for this service.
*/
@ObjectClassDefinition(pid=Activator.PID, description="Apache Aries Transaction Control Service (XA)")
@interface Config {
@AttributeDefinition(name="Enable recovery logging", required=false, description="Enable recovery logging")
boolean recovery_log_enabled() default false;
@AttributeDefinition(name="Recovery Log storage folder", required=false, description="Transaction Recovery Log directory")
boolean recovery_log_dir();
@AttributeDefinition(name="Transaction Timeout", required=false, description="Transaction Timeout in seconds")
int transaction_timeout() default 300;
@AttributeDefinition(name="Local Resources", required=false, description="Allow Local Resources to participate in transactions")
LocalResourceSupport local_resources() default ENFORCE_SINGLE;
}