01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */package org.apache.cxf.binding;
19:
20: import org.apache.cxf.BusException;
21:
22: /**
23: * The manager interface represents a repository for accessing
24: * <code>BindingFactory</code>s.
25: *
26: * Provides methods necessary for registering, deregistering or retrieving of
27: * BindingFactorys.
28: */
29: public interface BindingFactoryManager {
30:
31: /**
32: * Registers a BindingFactory using the provided name.
33: *
34: * @param name The name of the BindingFactory.
35: * @param binding The instance of the class that implements the
36: * BindingFactory interface.
37: */
38: void registerBindingFactory(String name, BindingFactory binding);
39:
40: /**
41: * Deregisters the BindingFactory with the provided name.
42: *
43: * @param name The name of the BindingFactory.
44: */
45: void unregisterBindingFactory(String name);
46:
47: /**
48: * Retrieves the BindingFactory registered with the given name.
49: *
50: * @param name The name of the BindingFactory.
51: * @return BindingFactory The registered BindingFactory.
52: * @throws BusException If there is an error retrieving the BindingFactory.
53: */
54: BindingFactory getBindingFactory(String name) throws BusException;
55: }
|