Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2009, Red Hat Middleware LLC, and individual contributors
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
   *
   * 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.jboss.forge.arquillian.archive.impl;
 
 import java.util.List;
 import java.util.Set;
 
 import  org.jboss.shrinkwrap.api.Archive;
 import  org.jboss.shrinkwrap.api.ArchivePath;
 import  org.jboss.shrinkwrap.api.ArchivePaths;
 import  org.jboss.shrinkwrap.api.asset.Asset;
 import  org.jboss.shrinkwrap.api.asset.EmptyAsset;
 import  org.jboss.shrinkwrap.impl.base.Validate;
 import  org.jboss.shrinkwrap.impl.base.container.ContainerBase;

Author(s):
Lincoln Baxter, III
 
 @SuppressWarnings("deprecation")
 public class ForgeArchiveImpl extends ContainerBase<ForgeArchiveimplements ForgeArchive
 {
    // -------------------------------------------------------------------------------------||
    // Class Members ----------------------------------------------------------------------||
    // -------------------------------------------------------------------------------------||
 
    @SuppressWarnings("unused")
    private static final Logger log = Logger.getLogger(ForgeArchiveImpl.class.getName());

   
Path to the web inside of the Archive.
 
    private static final ArchivePath PATH_ROOT = ArchivePaths.root();

   
Path to the classes inside of the Archive.
 
    private static final ArchivePath PATH_CLASSES = ArchivePaths.create("");

   
Path to the libraries inside of the Archive.
 
    private static final ArchivePath PATH_LIBRARY = ArchivePaths.create("lib");

   
Path to the manifests inside of the Archive.
 
    private static final ArchivePath PATH_MANIFEST = ArchivePaths.create("META-INF");

   
Path to the forge XML config file inside of the Archive.
 
    private static final ArchivePath PATH_FORGE_XML = ArchivePaths.create("META-INF/forge.xml");

   
Path to web archive service providers.
 
    private static final ArchivePath PATH_SERVICE_PROVIDERS = ArchivePaths.create("META-INF/services");
 
 
    private String repository;
 
    private int deploymentTimeout = 10000;
 
 
    // -------------------------------------------------------------------------------------||
    // Instance Members -------------------------------------------------------------------||
    // -------------------------------------------------------------------------------------||
 
    // -------------------------------------------------------------------------------------||
    // Constructor ------------------------------------------------------------------------||
    // -------------------------------------------------------------------------------------||
 
   
Create a new ForgeArchive with any type storage engine as backing.

Parameters:
delegate The storage backing.
   public ForgeArchiveImpl(final Archive<?> delegate)
   {
      super(ForgeArchive.classdelegate);
   }
   // -------------------------------------------------------------------------------------||
   // Required Implementations -----------------------------------------------------------||
   // -------------------------------------------------------------------------------------||

   

See also:
org.jboss.shrinkwrap.impl.base.container.ContainerBase.getManifestPath()
   protected ArchivePath getManifestPath()
   {
      return ;
   }
   protected ArchivePath getForgeXMLPath()
   {
      return ;
   }

   

See also:
org.jboss.shrinkwrap.impl.base.container.ContainerBase.getClassesPath()
   protected ArchivePath getClassesPath()
   {
      return ;
   }

   

See also:
org.jboss.shrinkwrap.impl.base.container.ContainerBase.getLibraryPath()
   protected ArchivePath getLibraryPath()
   {
      return ;
   }
   protected ArchivePath getServiceProvidersPath()
   {
      return ;
   }
   protected ArchivePath getResourcePath()
   {
      return ;
   }
   public ForgeArchive setAsForgeXML(final Asset resourcethrows IllegalArgumentException
   {
      Validate.notNull(resource"Resource should be specified");
      return add(resourcegetForgeXMLPath());
   }
   {
      if (dependencies != null)
         .addAll(Arrays.asList(dependencies));
      return this;
   }
   {
      return ;
   }
   public ForgeArchive addBeansXML()
   {
      addAsManifestResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
      return this;
   }
   public ForgeArchive addBeansXML(Asset resource)
   {
      addAsManifestResource(resource, ArchivePaths.create("beans.xml"));
      return this;
   }
   public String getAddonRepository()
   {
      return ;
   }
   public ForgeArchive setAddonRepository(String repository)
   {
      this. = repository;
      return this;
   }
   private static final String SERVICE_REGISTRATION_FILE_NAME = "org.jboss.forge.furnace.services.Exported";
   public ForgeArchive addAsLocalServices(Class<?>... serviceTypes)
   {
      addPackages(trueLocalServices.class.getPackage());
      Set<StringtypeNames = new LinkedHashSet<String>();
      for (Class<?> type : serviceTypes)
      {
         typeNames.add(type.getName());
      }
               typeNames.toArray(new String[typeNames.size()]));
      return this;
   }
   public ForgeArchive setDeploymentTimeoutQuantity(int quantity)
   {
      this. = quantity;
      return this;
   }
   public int getDeploymentTimeoutQuantity()
   {
      return this.;
   }
   {
      this. = unit;
      return this;
   }
   {
   }
New to GrepCode? Check out our FAQ X