stephan     2004/03/23 11:21:33

  Modified:    src/blocks/ojb/java/org/apache/cocoon/ojb/broker/components
                        PBFactoryImpl.java
  Log:
  Correct indention.
  
  Revision  Changes    Path
  1.3       +24 -31    
cocoon-2.1/src/blocks/ojb/java/org/apache/cocoon/ojb/broker/components/PBFactoryImpl.java
  
  Index: PBFactoryImpl.java
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/ojb/java/org/apache/cocoon/ojb/broker/components/PBFactoryImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PBFactoryImpl.java        5 Mar 2004 13:02:01 -0000       1.2
  +++ PBFactoryImpl.java        23 Mar 2004 19:21:33 -0000      1.3
  @@ -33,47 +33,40 @@
    * @author <a href="mailto:[EMAIL PROTECTED]">Antonio Gallardo</a>
    * @version CVS $Id$
   */
  -public class PBFactoryImpl extends AbstractOjbImpl implements PBFactory, 
Configurable, Initializable,
  -Disposable, ThreadSafe
  -{
  +public class PBFactoryImpl extends AbstractOjbImpl implements PBFactory, 
Configurable, Initializable, Disposable, ThreadSafe {
  +     
       /* (non-Javadoc)
        * @see 
org.apache.avalon.framework.configuration.Configurable#configure(org.apache.avalon.framework.configuration.Configuration)
        */
  -    public void configure(Configuration myconf) throws ConfigurationException
  -    {
  -             if (this.getLogger().isDebugEnabled())
  -                     this.getLogger().debug("OJB-JDO: configuration");
  +    public void configure(Configuration myconf) throws 
ConfigurationException {
  +        if (this.getLogger().isDebugEnabled())
  +            this.getLogger().debug("OJB-JDO: configuration");
       }
   
       /* (non-Javadoc)
        * @see org.apache.avalon.framework.activity.Disposable#dispose()
        */
  -    public void dispose()
  -    {
  +    public void dispose() {
           super.dispose();
  -             if (this.getLogger().isDebugEnabled())
  -                     this.getLogger().debug("OJB-PB: Disposed OK!");
  +        if (this.getLogger().isDebugEnabled())
  +            this.getLogger().debug("OJB-PB: Disposed OK!");
       }
   
  -     /* (non-Javadoc)
  -      * @see org.apache.avalon.framework.activity.Initializable#initialize()
  -      */
  -     public void initialize() throws Exception
  -     {
  -        super.initialize();
  -             try
  -             {
  -                     if (this.getLogger().isDebugEnabled()) {
  -                             this.getLogger().debug("OJB-PB: Started OK!");
  -            }
  -             }
  -             catch (Throwable t)
  -             {
  -                     if (this.getLogger().isFatalErrorEnabled()) {
  -                             this.getLogger().fatalError("OJB-PB: Started 
failed: Cannot create a Persistence Broker Factory.",t);
  -                     }
  -             }
  -     }
  +    /* (non-Javadoc)
  +     * @see org.apache.avalon.framework.activity.Initializable#initialize()
  +     */
  +    public void initialize() throws Exception {
  +          super.initialize();
  +          try {
  +              if (this.getLogger().isDebugEnabled()) {
  +                  this.getLogger().debug("OJB-PB: Started OK!");
  +              }
  +          } catch (Throwable t) {
  +              if (this.getLogger().isFatalErrorEnabled()) {
  +                  this.getLogger().fatalError("OJB-PB: Started failed: 
Cannot create a Persistence Broker Factory.",t);
  +              }
  +          }
  +    }
   
       /* (non-Javadoc)
        * @see 
org.apache.cocoon.ojb.broker.components.PBFactory#defaultPersistenceBroker()
  
  
  

Reply via email to