Package org.jboss.deployers.spi.structure

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


      return false;
   }

   public boolean determineStructure(StructureContext structureContext) throws DeploymentException
   {
      ContextInfo context = null;
      VirtualFile file = structureContext.getFile();
      try
      {
         boolean trace = log.isTraceEnabled();
         if (isLeaf(file) == true)
View Full Code Here


         JarUtils.removeJarSuffix(extension);
   }

   public boolean determineStructure(StructureContext structureContext) throws DeploymentException
   {
      ContextInfo context = null;
      VirtualFile file = structureContext.getFile();
      try
      {
         boolean trace = log.isTraceEnabled();
View Full Code Here

      if (result)
      {
         String relativePath = AbstractStructureDeployer.getRelativePath(context.getParent(), 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 parentContextInfo;
         List<String> metaDataPath = recognised.getMetaDataPath();
         if (metaDataPath == null || metaDataPath.isEmpty())
            parentContextInfo = StructureMetaDataFactory.createContextInfo(relativePath, recognised.getClassPath());
         else
            parentContextInfo = StructureMetaDataFactory.createContextInfo(relativePath, metaDataPath, recognised.getClassPath());

         // copy the modification type information
         parentContextInfo.setModificationType(recognised.getModificationType());
         StructureMetaData structureMetaData = parentContext.getMetaData();
         structureMetaData.addContext(parentContextInfo);
         MutableAttachments attachments = (MutableAttachments) parentContextInfo.getPredeterminedManagedObjects();
         attachments.addAttachment(StructureMetaData.class, structure);
      }
      return result;
   }
View Full Code Here

      StructureContext parentContext = context.getParentContext();
      if (parentContext == null)
         return false;

      StructureMetaData smd = parentContext.getMetaData();
      ContextInfo info = smd.getContext("");
      List<String> metadataPaths = info.getMetaDataPath();
      if (metadataPaths != null && metadataPaths.isEmpty() == false)
      {
         String relativePath = AbstractStructureDeployer.getRelativePath(context.getParent(), context.getFile());
         for (String path : metadataPaths)
            if (relativePath.equalsIgnoreCase(path))
View Full Code Here

    * @return the context info
    * @throws IllegalArgumentException for a null root or structure metaData
    */
   protected ContextInfo createContext(VirtualFile root, String metaDataPath, StructureMetaData structureMetaData)
   {
      ContextInfo result = applyMetadataPath(root, metaDataPath);
      applyStructure(root, structureMetaData, result);
      return result;
   }
View Full Code Here

    * @return the context info
    * @throws IllegalArgumentException for a null root or structure metaData
    */
   protected ContextInfo createContext(VirtualFile root, String[] metaDataPaths, StructureMetaData structureMetaData)
   {
      ContextInfo result = applyMetadataPaths(root, metaDataPaths);
      applyStructure(root, structureMetaData, result);
      return result;
   }
View Full Code Here

    * @return the context info
    * @throws IllegalArgumentException for a null root or structure metaData
    */
   protected ContextInfo createContext(StructureContext context, String metaDataPath)
   {
      ContextInfo result = applyMetadataPath(context, metaDataPath);
      applyStructure(context, result);
      return result;
   }
View Full Code Here

    * @throws IllegalArgumentException for a null root or structure metaData
    */
   @Deprecated // Remove JBDEPLOY-66
   protected ContextInfo createContext(VirtualFile root, String metaDataPath, StructureMetaData structureMetaData)
   {
      ContextInfo result = applyMetadataPath(root, metaDataPath);
      applyStructure(root, structureMetaData, result);
      return result;
   }
View Full Code Here

    * @return the context info
    * @throws IllegalArgumentException for a null root or structure metaData
    */
   protected ContextInfo createContext(StructureContext context, String[] metaDataPaths)
   {
      ContextInfo result = applyMetadataPaths(context, metaDataPaths);
      applyStructure(context, result);
      return result;
   }
View Full Code Here

    * @throws IllegalArgumentException for a null root or structure metaData
    */
   @Deprecated // Remove JBDEPLOY-66
   protected ContextInfo createContext(VirtualFile root, String[] metaDataPaths, StructureMetaData structureMetaData)
   {
      ContextInfo result = applyMetadataPaths(root, metaDataPaths);
      applyStructure(root, structureMetaData, result);
      return result;
   }
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.