Package org.jboss.deployers.spi.structure

Examples of org.jboss.deployers.spi.structure.ContextInfo


        VirtualFile file = structureContext.getFile();

        if (shortCircuitFileCheck(file) == false)
            return false;
       
        ContextInfo context = null;
        try
        {
            context = createContext(structureContext, metaDataPaths);
           
            if (rootClasspathEntry)
View Full Code Here


        VirtualFile file = structureContext.getFile();

        if (shortCircuitFileCheck(file) == false)
            return false;
       
        ContextInfo context = null;
        try
        {
            context = createContext(structureContext, metaDataPaths);
           
            if (rootClasspathEntry)
View Full Code Here

         result = createRootDeploymentContext(deployment, metaData);
         if (result == null)
            throw new IllegalStateException("Root deployment context is null");
         result.setDeployment(deployment);

         ContextInfo contextInfo = metaData.getContext("");
         if (contextInfo == null)
            contextInfo = StructureMetaDataFactory.createContextInfo("", null);

         applyStructureMetaData(result, metaData);
         contextInfo.setPredeterminedManagedObjects(deployment.getPredeterminedManagedObjects());
         applyContextInfo(result, contextInfo);
      }
      catch (Throwable t)
      {
         throw DeploymentException.rethrowAsDeploymentException("Error populating deployment " + deployment.getName(), t);
View Full Code Here

      this.webInfLibFilter = webInfLibFilter;
   }

   public boolean determineStructure(VirtualFile root, VirtualFile parent, VirtualFile file, StructureMetaData metaData, VFSStructuralDeployers deployers) throws DeploymentException
   {
      ContextInfo context = null;
      try
      {
         if (isLeaf(file) == false)
         {
            // We require either a WEB-INF or the name ends in .war
View Full Code Here

      if (result)
      {
         String relativePath = AbstractStructureDeployer.getRelativePath(parent, file);
        
         // Something said it recognised it
         ContextInfo recognised = structure.getContext("");
         if (recognised == null)
            throw new IllegalStateException("Something recognised the deployment, but there is no context? " + file);
        
         // Create the context in the parent structure
         ContextInfo parentContext;
         List<String> metaDataPath = recognised.getMetaDataPath();
         if (metaDataPath == null || metaDataPath.isEmpty())
            parentContext = StructureMetaDataFactory.createContextInfo(relativePath, recognised.getClassPath());
         else
            parentContext = StructureMetaDataFactory.createContextInfo(relativePath, metaDataPath, recognised.getClassPath());
        
         structureMetaData.addContext(parentContext);
         MutableAttachments attachments = (MutableAttachments) parentContext.getPredeterminedManagedObjects();
         attachments.addAttachment(StructureMetaData.class, structure);
      }
      return result;
   }
View Full Code Here

      JarUtils.setJarSuffixes(suffixes);
   }

   public boolean determineStructure(VirtualFile root, VirtualFile parent, VirtualFile file, StructureMetaData metaData, VFSStructuralDeployers deployers) throws DeploymentException
   {
      ContextInfo context = null;
      try
      {
         if (isLeaf(file) == false)
         {
            // For non top level directories that don't look like jars
View Full Code Here

      return false;
   }

   public boolean determineStructure(VirtualFile root, VirtualFile parent, VirtualFile file, StructureMetaData metaData, VFSStructuralDeployers deployers) throws DeploymentException
   {
      ContextInfo context = null;
      try
      {
         boolean trace = log.isTraceEnabled();
         if (isLeaf(file) == true)
         {
View Full Code Here

      this.webInfLibFilter = webInfLibFilter;
   }

   public boolean determineStructure(VirtualFile root, VirtualFile parent, VirtualFile file, StructureMetaData metaData, VFSStructuralDeployers deployers) throws DeploymentException
   {
      ContextInfo context = null;
      try
      {
         boolean trace = log.isTraceEnabled();

         if (isLeaf(file) == false)
View Full Code Here

      return false;
   }

   public boolean determineStructure(VirtualFile root, VirtualFile parent, VirtualFile file, StructureMetaData metaData, VFSStructuralDeployers deployers) throws DeploymentException
   {
      ContextInfo context = null;
      try
      {
         boolean trace = log.isTraceEnabled();
         if (isLeaf(file) == true)
         {
View Full Code Here

   protected Deployment createClasspathEntries() throws Exception
   {
      DeploymentFactory factory = getDeploymentFactory();
      Deployment deployment = createDeployment();
      ContextInfo contextInfo = factory.addContext(deployment, "");
      contextInfo.addClassPathEntry(DeploymentFactory.createClassPathEntry("cp1.txt"));
      contextInfo.addClassPathEntry(DeploymentFactory.createClassPathEntry("cp2.txt"));
      return deployment;
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.spi.structure.ContextInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.