hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject cvs commit: jakarta-hivemind/library/src/java/org/apache/hivemind/lib/impl PlaceholderFactory.java PlaceholderBuilder.java
Date Wed, 09 Jun 2004 14:56:13 GMT
hlship      2004/06/09 07:56:13

  Added:       library/src/java/org/apache/hivemind/lib/impl
                        PlaceholderFactory.java
  Removed:     library/src/java/org/apache/hivemind/lib/impl
                        PlaceholderBuilder.java
  Log:
  Rename PlaceholderBuilder to PlaceholderFactory.
  
  Revision  Changes    Path
  1.1                  jakarta-hivemind/library/src/java/org/apache/hivemind/lib/impl/PlaceholderFactory.java
  
  Index: PlaceholderFactory.java
  ===================================================================
  //  Copyright 2004 The Apache Software Foundation
  //
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  //
  //     http://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
  
  package org.apache.hivemind.lib.impl;
  
  import java.util.List;
  
  import org.apache.hivemind.ServiceImplementationFactory;
  import org.apache.hivemind.impl.BaseLocatable;
  import org.apache.hivemind.internal.Module;
  import org.apache.hivemind.lib.DefaultImplementationBuilder;
  
  /**
   * Wrapper around {@link org.apache.hivemind.lib.DefaultImplementationBuilder} that is used
   * to create default implementations of services.
   *
   * @author Howard Lewis Ship
   */
  public class PlaceholderFactory extends BaseLocatable implements ServiceImplementationFactory
  {
      private DefaultImplementationBuilder _builder;
  
      public Object createCoreServiceImplementation(
          String serviceId,
          Class serviceInterface,
          Module invokingModule,
          List parameters)
      {
          return _builder.buildDefaultImplementation(serviceInterface, invokingModule);
      }
  
      public void setBuilder(DefaultImplementationBuilder builder)
      {
          _builder = builder;
      }
  
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message