001    package org.apache.ojb.broker.core.proxy;
002    
003    /* Copyright 2002-2005 The Apache Software Foundation
004     *
005     * Licensed under the Apache License, Version 2.0 (the "License");
006     * you may not use this file except in compliance with the License.
007     * You may obtain a copy of the License at
008     *
009     *     http://www.apache.org/licenses/LICENSE-2.0
010     *
011     * Unless required by applicable law or agreed to in writing, software
012     * distributed under the License is distributed on an "AS IS" BASIS,
013     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     * See the License for the specific language governing permissions and
015     * limitations under the License.
016     */
017    
018    /**
019     * Declares a configuration for he indirection handler factory.
020     *
021     * @see org.apache.ojb.broker.core.proxy.ProxyFactory 
022     * @author <a href="mailto:tomdz@apache.org">Thomas Dudziak<a>
023     */
024    public interface ProxyConfiguration
025    {
026        /**
027         * Returns the indirection handler implementation class.
028         * 
029         * @return The indirection handler class
030         * @see org.apache.ojb.broker.core.proxy.IndirectionHandler
031         */
032        Class getIndirectionHandlerClass();
033    
034        /**
035         * Returns the collection proxy class for collection classes that implement the {@link java.util.List}
036         * interface.
037         * 
038         * @return The proxy class
039         * @see org.apache.ojb.broker.core.proxy.ProxyFactory#setListProxyClass(Class)
040         */
041        Class getListProxyClass();
042    
043        /**
044         * Returns the collection proxy class for collection classes that implement the {@link java.util.Set}
045         * interface.
046         * 
047         * @return The proxy class
048         * @see org.apache.ojb.broker.core.proxy.ProxyFactory#setSetProxyClass(Class)
049         */
050        Class getSetProxyClass();
051    
052        /**
053         * Returns the collection proxy class for generic collection classes that implement the
054         * {@link java.util.Collection} interface.
055         * 
056         * @return The proxy class
057         * @see org.apache.ojb.broker.core.proxy.ProxyFactory#setCollectionProxyClass(Class)
058         */
059        Class getCollectionProxyClass();
060        
061        /**
062         * Returns the proxy factory class 
063         * 
064         * @return The proxy class
065         */
066        Class getProxyFactoryClass();
067        
068        
069    }