01: package org.apache.ojb.broker.core.proxy;
02:
03: /* Copyright 2002-2005 The Apache Software Foundation
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /**
19: * Declares a configuration for he indirection handler factory.
20: *
21: * @see org.apache.ojb.broker.core.proxy.ProxyFactory
22: * @author <a href="mailto:tomdz@apache.org">Thomas Dudziak<a>
23: */
24: public interface ProxyConfiguration {
25: /**
26: * Returns the indirection handler implementation class.
27: *
28: * @return The indirection handler class
29: * @see org.apache.ojb.broker.core.proxy.IndirectionHandler
30: */
31: Class getIndirectionHandlerClass();
32:
33: /**
34: * Returns the collection proxy class for collection classes that implement the {@link java.util.List}
35: * interface.
36: *
37: * @return The proxy class
38: * @see org.apache.ojb.broker.core.proxy.ProxyFactory#setListProxyClass(Class)
39: */
40: Class getListProxyClass();
41:
42: /**
43: * Returns the collection proxy class for collection classes that implement the {@link java.util.Set}
44: * interface.
45: *
46: * @return The proxy class
47: * @see org.apache.ojb.broker.core.proxy.ProxyFactory#setSetProxyClass(Class)
48: */
49: Class getSetProxyClass();
50:
51: /**
52: * Returns the collection proxy class for generic collection classes that implement the
53: * {@link java.util.Collection} interface.
54: *
55: * @return The proxy class
56: * @see org.apache.ojb.broker.core.proxy.ProxyFactory#setCollectionProxyClass(Class)
57: */
58: Class getCollectionProxyClass();
59:
60: /**
61: * Returns the proxy factory class
62: *
63: * @return The proxy class
64: */
65: Class getProxyFactoryClass();
66:
67: }
|