Examples of StructureContext


Examples of org.jboss.deployers.vfs.spi.structure.StructureContext

   }
  
   public boolean determineStructure(VirtualFile file, StructureContext parentContext) throws DeploymentException
   {
      StructureMetaData structure = StructureMetaDataFactory.createStructureMetaData();
      StructureContext context = new StructureContext(file, structure, parentContext);
      boolean result = doDetermineStructure(context);
      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);
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.StructureContext

      VFSDeployment vfsDeployment = (VFSDeployment) deployment;
     
      VirtualFile root = vfsDeployment.getRoot();
      if (root == null)
         throw new IllegalStateException("Deployment has no root " + deployment);
      StructureContext context = new StructureContext(root, structure, this);
      if (doDetermineStructure(context) == false)
         throw new DeploymentException("No deployer recognised the structure of " + deployment.getName());
   }
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.StructureContext

         boolean valid = true;

         if (isSupportsCandidateAnnotations())
         {
            StructureContext parentContext = structureContext.getParentContext();
            if (parentContext != null && parentContext.isCandidateAnnotationScanning())
            {
               valid = checkCandidateAnnotations(structureContext, file);
               if (trace)
                  log.trace("... candidate annotations for " + file + " returned " + valid);
            }
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.StructureContext

         throw new IllegalArgumentException("Null or empty roots");

      if (candidateAnnotations == null || candidateAnnotations.isEmpty())
         return true;

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

      Set<CandidateAnnotationsCallback> callbacks = parentContext.getCallbacks(CandidateAnnotationsCallback.class);
      if (callbacks.isEmpty())
         return true;

      boolean result = false;
      for(VirtualFile root : roots)
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.StructureContext

   protected void addChildren(VirtualFile root, VirtualFile parent, StructureMetaData metaData, VFSStructuralDeployers deployers, VisitorAttributes attributes) throws Exception
   {
      if (parent == null)
         throw new IllegalArgumentException("Null parent");

      StructureContext context = new StructureContext(root, null, parent, metaData, deployers, null);
      addChildren(context, attributes);
   }
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.StructureContext

         throw new IllegalArgumentException("Null or empty roots");

      if (candidateAnnotations == null || candidateAnnotations.isEmpty())
         return true;

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

      Set<CandidateAnnotationsCallback> callbacks = parentContext.getCallbacks(CandidateAnnotationsCallback.class);
      if (callbacks.isEmpty())
         return true;

      boolean result = false;
      for(VirtualFile root : roots)
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.StructureContext

   protected void addChildren(VirtualFile root, VirtualFile parent, StructureMetaData metaData, VFSStructuralDeployers deployers, VisitorAttributes attributes) throws Exception
   {
      if (parent == null)
         throw new IllegalArgumentException("Null parent");

      StructureContext context = new StructureContext(root, null, parent, metaData, deployers, null);
      addChildren(context, attributes);
   }
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.StructureContext

            log.trace("... ok - its an archive or at least pretending to be");

         boolean valid = true;
         if (isSupportsCandidateAnnotations())
         {
            StructureContext parentContext = structureContext.getParentContext();
            if (parentContext != null && parentContext.isCandidateAnnotationScanning())
            {
               valid = checkCandidateAnnotations(structureContext, file);
               if (trace)
                  log.trace("... candidate annotations for " + file + " returned " + valid);
            }
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.StructureContext

         throw new IllegalArgumentException("Null or empty roots");

      if (candidateAnnotations == null || candidateAnnotations.isEmpty())
         return true;

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

      Set<CandidateAnnotationsCallback> callbacks = parentContext.getCallbacks(CandidateAnnotationsCallback.class);
      if (callbacks.isEmpty())
         return true;

      boolean result = false;
      for(VirtualFile root : roots)
View Full Code Here

Examples of org.jboss.deployers.vfs.spi.structure.StructureContext

   protected void addChildren(VirtualFile root, VirtualFile parent, StructureMetaData metaData, VFSStructuralDeployers deployers, VisitorAttributes attributes) throws Exception
   {
      if (parent == null)
         throw new IllegalArgumentException("Null parent");

      StructureContext context = new StructureContext(root, null, parent, metaData, deployers, null);
      addChildren(context, attributes);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.