/*
* Copyright 2008 Federal Chancellery Austria and
* Graz University of Technology
*
* Licensed 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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package at.gv.egiz.bku.binding;
import java.util.Locale;
import java.util.Set;
/**
* A BindingProcessorManager
provides factory methods for creating
* BindingProcessor
s and allows for scheduling them for processing.
*
* @author wbauer, mcentner
*/
public interface BindingProcessorManager {
/**
* Creates a new BindingProcessor for the given protocol
.
*
* @param protocol
* the name of the protocol binding the created BindingProcessor is
* required to implement
* @param locale
* the locale to be used by the binding processor, may be
* null
*/
public BindingProcessor createBindingProcessor(String protocol, Locale locale);
/**
* Creates a new BindingProcessor for the given protocol
.
*
* @param protocol
* the name of the protocol binding the created BindingProcessor is
* required to implement
*/
public BindingProcessor createBindingProcessor(String protocol);
/**
* Returns the BindingProcessor which has been scheduled for processing with
* the given id
.
*
* @param id
* the processing id of the requested BindingProcessor
*
* @return the BindingProcessor which has been scheduled for processing with
* the given id
, or null
if no
* BindingProcessor has been scheduled with the given id
.
*/
public BindingProcessor getBindingProcessor(Id id);
/**
* Schedules the given BindingProcessor for processing.
*
*
id
.Id
s of currently managed BindingProcessor.
*
* @return the set of Id
s of currently managed BindingProcessor.
*/
public Set