Package org.jboss.deployers.spi.structure

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


    * @throws IllegalArgumentException for a null parameter
    */
   public ContextInfo addContext(PredeterminedManagedObjectAttachments context, String path)
   {
      StructureMetaData structure = assureStructure(context);
      ContextInfo result = StructureMetaDataFactory.createContextInfo(path);
      structure.addContext(result);
      return result;
   }
View Full Code Here


    * @throws IllegalArgumentException for a null parameter
    */
   public ContextInfo addContext(PredeterminedManagedObjectAttachments context, String path, List<ClassPathEntry> classPath)
   {
      StructureMetaData structure = assureStructure(context);
      ContextInfo result = StructureMetaDataFactory.createContextInfo(path, classPath);
      structure.addContext(result);
      return result;
   }
View Full Code Here

    * @throws IllegalArgumentException for a null parameter
    */
   public ContextInfo addContext(PredeterminedManagedObjectAttachments context, String path, String metaDataPath, List<ClassPathEntry> classPath)
   {
      StructureMetaData structure = assureStructure(context);
      ContextInfo result = StructureMetaDataFactory.createContextInfo(path, metaDataPath, classPath);
      structure.addContext(result);
      return result;
   }
View Full Code Here

    * @throws IllegalArgumentException for a null parameter
    */
   public ContextInfo addContext(PredeterminedManagedObjectAttachments context, String path, List<String> metaDataPath, List<ClassPathEntry> classPath)
   {
      StructureMetaData structure = assureStructure(context);
      ContextInfo result = StructureMetaDataFactory.createContextInfo(path, metaDataPath, classPath);
      structure.addContext(result);
      return result;
   }
View Full Code Here

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

      StructureMetaData smd = parentContext.getMetaData();
      ContextInfo info = smd.getContext("");
      List<MetaDataEntry> metadataPaths = info.getMetaDataPath();
      if (metadataPaths != null && metadataPaths.isEmpty() == false)
      {
         String relativePath = AbstractStructureDeployer.getRelativePath(context.getParent(), context.getFile());
         for (MetaDataEntry entry : metadataPaths)
            if (relativePath.equalsIgnoreCase(entry.getPath()))
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<MetaDataEntry> metaDataPath = recognised.getMetaDataPath();
         if (metaDataPath == null || metaDataPath.isEmpty())
            parentContextInfo = StructureMetaDataFactory.createContextInfo(relativePath, recognised.getClassPath());
         else
            parentContextInfo = StructureMetaDataFactory.createContextInfo(recognised.getClassPath(), metaDataPath, relativePath);

         // 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

         result = createRootDeploymentContext(deployment);
         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);
         contextInfo.setPredeterminedManagedObjects(deployment.getPredeterminedManagedObjects());
         applyContextInfo(result, contextInfo);
      }
      catch (Throwable t)
      {
         throw DeploymentException.rethrowAsDeploymentException("Error populating deployment " + deployment.getName(), t);
View Full Code Here

    * @throws IllegalArgumentException for a null parameter
    */
   public ContextInfo addContext(PredeterminedManagedObjectAttachments context, String path)
   {
      StructureMetaData structure = assureStructure(context);
      ContextInfo result = StructureMetaDataFactory.createContextInfo(path);
      structure.addContext(result);
      return result;
   }
View Full Code Here

    * @throws IllegalArgumentException for a null parameter
    */
   public ContextInfo addContext(PredeterminedManagedObjectAttachments context, String path, List<ClassPathEntry> classPath)
   {
      StructureMetaData structure = assureStructure(context);
      ContextInfo result = StructureMetaDataFactory.createContextInfo(path, classPath);
      structure.addContext(result);
      return result;
   }
View Full Code Here

    * @throws IllegalArgumentException for a null parameter
    */
   public ContextInfo addContext(PredeterminedManagedObjectAttachments context, String path, String metaDataPath, List<ClassPathEntry> classPath)
   {
      StructureMetaData structure = assureStructure(context);
      ContextInfo result = StructureMetaDataFactory.createContextInfo(path, metaDataPath, classPath);
      structure.addContext(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.