File Source: JPAWebloggerModule.java

         /* 
    P/P   *  Method: org.apache.roller.weblogger.business.jpa.JPAWebloggerModule__static_init
          */
     1  /*
     2   * Licensed to the Apache Software Foundation (ASF) under one or more
     3   *  contributor license agreements.  The ASF licenses this file to You
     4   * under the Apache License, Version 2.0 (the "License"); you may not
     5   * use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   *
     8   *     http://www.apache.org/licenses/LICENSE-2.0
     9   *
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.  For additional information regarding
    15   * copyright in this work, please see the NOTICE file in the top level
    16   * directory of this distribution.
    17   */
    18  
    19  package org.apache.roller.weblogger.business.jpa;
    20  
    21  import com.google.inject.Binder;
    22  import com.google.inject.Module;
    23  import org.apache.roller.weblogger.business.BookmarkManager;
    24  import org.apache.roller.weblogger.business.FileManager;
    25  import org.apache.roller.weblogger.business.FileManagerImpl;
    26  import org.apache.roller.weblogger.business.MultiWeblogURLStrategy;
    27  import org.apache.roller.weblogger.business.PropertiesManager;
    28  import org.apache.roller.weblogger.business.URLStrategy;
    29  import org.apache.roller.weblogger.business.Weblogger;
    30  import org.apache.roller.weblogger.business.UserManager;
    31  import org.apache.roller.weblogger.business.WeblogManager;
    32  import org.apache.roller.weblogger.business.pings.AutoPingManager;
    33  import org.apache.roller.weblogger.business.pings.PingQueueManager;
    34  import org.apache.roller.weblogger.business.pings.PingTargetManager;
    35  import org.apache.roller.weblogger.business.plugins.PluginManager;
    36  import org.apache.roller.weblogger.business.plugins.PluginManagerImpl;
    37  import org.apache.roller.weblogger.business.referrers.RefererManager;
    38  import org.apache.roller.weblogger.business.referrers.ReferrerQueueManager;
    39  import org.apache.roller.weblogger.business.referrers.ReferrerQueueManagerImpl;
    40  import org.apache.roller.weblogger.business.runnable.ThreadManager;
    41  import org.apache.roller.weblogger.business.search.IndexManager;
    42  import org.apache.roller.weblogger.business.search.IndexManagerImpl;
    43  import org.apache.roller.weblogger.business.themes.ThemeManager;
    44  import org.apache.roller.weblogger.business.themes.ThemeManagerImpl;
    45  
    46  
    47  /**
    48   * Guice module for configuring JPA as Weblogger-backend.
    49   */
         /* 
    P/P   *  Method: void org.apache.roller.weblogger.business.jpa.JPAWebloggerModule()
          */
    50  public class JPAWebloggerModule implements Module {
    51  
    52      public void configure(Binder binder) {
    53  
                 /* 
    P/P           *  Method: void configure(Binder)
                  * 
                  *  Preconditions:
                  *    binder != null
                  * 
                  *  Presumptions:
                  *    com.google.inject.Binder:bind(...)@54 != null
                  *    com.google.inject.Binder:bind(...)@59 != null
                  *    com.google.inject.Binder:bind(...)@60 != null
                  *    com.google.inject.Binder:bind(...)@61 != null
                  *    com.google.inject.Binder:bind(...)@62 != null
                  *    ...
                  */
    54          binder.bind(Weblogger.class).to(JPAWebloggerImpl.class);
    55          
    56          binder.bind(JPAPersistenceStrategy.class);       
    57          binder.bind(org.apache.roller.weblogger.planet.business.jpa.JPARollerPlanetPersistenceStrategy.class);
    58          
    59          binder.bind(AutoPingManager.class).to(     JPAAutoPingManagerImpl.class);   
    60          binder.bind(BookmarkManager.class).to(     JPABookmarkManagerImpl.class);  
    61          binder.bind(PingQueueManager.class).to(    JPAPingQueueManagerImpl.class);   
    62          binder.bind(PingTargetManager.class).to(   JPAPingTargetManagerImpl.class); 
    63          binder.bind(PropertiesManager.class).to(   JPAPropertiesManagerImpl.class);   
    64          binder.bind(RefererManager.class).to(      JPARefererManagerImpl.class);
    65          binder.bind(ThreadManager.class).to(       JPAThreadManagerImpl.class);  
    66          binder.bind(UserManager.class).to(         JPAUserManagerImpl.class);   
    67          binder.bind(WeblogManager.class).to(       JPAWeblogManagerImpl.class);   
    68                  
    69          binder.bind(ReferrerQueueManager.class).to(ReferrerQueueManagerImpl.class); 
    70          binder.bind(FileManager.class).to(         FileManagerImpl.class);   
    71          binder.bind(IndexManager.class).to(        IndexManagerImpl.class);
    72          binder.bind(PluginManager.class).to(       PluginManagerImpl.class);    
    73          binder.bind(ThemeManager.class).to(        ThemeManagerImpl.class);
    74          
    75          binder.bind(URLStrategy.class).to(         MultiWeblogURLStrategy.class);
    76      }
    77      
    78  }








SofCheck Inspector Build Version : 2.18479
JPAWebloggerModule.java 2009-Jan-02 14:24:58
JPAWebloggerModule.class 2009-Sep-04 03:12:31