org.jboss.system.tools
Class ProfileServiceDeploymentRepositoryAdapter.DeploymentScannerProfile

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource
      extended by org.jboss.system.server.profileservice.repository.AbstractDeploymentRepository
          extended by org.jboss.system.server.profileservice.repository.BasicDeploymentRepository
              extended by org.jboss.system.server.profileservice.repository.HotDeploymentRepository
                  extended by org.jboss.system.tools.ProfileServiceDeploymentRepositoryAdapter.DeploymentScannerProfile
All Implemented Interfaces:
org.jboss.profileservice.spi.DeploymentRepository, org.jboss.profileservice.spi.MutableProfile, org.jboss.profileservice.spi.Profile
Enclosing class:
ProfileServiceDeploymentRepositoryAdapter

public static class ProfileServiceDeploymentRepositoryAdapter.DeploymentScannerProfile
extends HotDeploymentRepository
implements org.jboss.profileservice.spi.MutableProfile


Field Summary
 
Fields inherited from class org.jboss.system.server.profileservice.repository.AbstractDeploymentRepository
ignoreFlags
 
Fields inherited from class org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource
log, uris
 
Constructor Summary
ProfileServiceDeploymentRepositoryAdapter.DeploymentScannerProfile(org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker checker)
           
 
Method Summary
 void addDeployment(org.jboss.profileservice.spi.ProfileDeployment deployment)
           
protected  void applyAddedDeployments(URI applicationDir, List<org.jboss.profileservice.spi.ModificationInfo> modified, List<org.jboss.virtual.VirtualFile> added)
          Apply added deployments.
protected  void checkForAdditions(List<org.jboss.profileservice.spi.ModificationInfo> modified)
          Check for additions.
 void enableModifiedDeploymentChecks(boolean flag)
           
 org.jboss.profileservice.spi.ProfileKey getKey()
           
 Collection<org.jboss.profileservice.spi.ModificationInfo> getModifiedDeployments()
           
 Collection<org.jboss.profileservice.spi.ProfileKey> getSubProfiles()
           
 boolean hasDeployment(String name)
           
 boolean isMutable()
           
 
Methods inherited from class org.jboss.system.server.profileservice.repository.HotDeploymentRepository
cleanUpRoot, getChecker, setChecker
 
Methods inherited from class org.jboss.system.server.profileservice.repository.BasicDeploymentRepository
addDeployment, addDeploymentContent, addDeploymentContent, getUploadUri, internalAddDeployment, isFailIfAlreadyExists, load, lockRead, lockWrite, remove, removeDeployment, removeDeployment, setFailIfAlreadyExists, setUploadUri, unlockRead, unlockWrite
 
Methods inherited from class org.jboss.system.server.profileservice.repository.AbstractDeploymentRepository
acceptsDeployment, clearDeploymentContentFlags, create, getDeployment, getDeploymentContent, getDeploymentContentFlags, getProfileKey, getRepositoryNames, hasDeploymentContentFlags, lockDeploymentContent, setDeploymentContentFlags, unload, unlockDeploymentContent
 
Methods inherited from class org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource
addedDeployment, addedDeployments, addVirtualFileCache, createDeployment, destroy, findDeploymentContent, getCachedVirtualFile, getCachedVirtualFile, getDeploymentFilter, getDeploymentNames, getDeployments, getLastModified, getRepositoryURIs, isRecursiveScan, loadApplications, setDeploymentFilter, setRecursiveScan, updateLastModfied
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.profileservice.spi.MutableProfile
removeDeployment
 
Methods inherited from interface org.jboss.profileservice.spi.Profile
getDeployment, getDeploymentNames, getDeployments, getLastModified
 
Methods inherited from interface org.jboss.profileservice.spi.DeploymentRepository
getDeploymentNames, getDeployments, getLastModified, getRepositoryURIs
 

Constructor Detail

ProfileServiceDeploymentRepositoryAdapter.DeploymentScannerProfile

public ProfileServiceDeploymentRepositoryAdapter.DeploymentScannerProfile(org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker checker)
Method Detail

addDeployment

public void addDeployment(org.jboss.profileservice.spi.ProfileDeployment deployment)
                   throws Exception
Specified by:
addDeployment in interface org.jboss.profileservice.spi.MutableProfile
Throws:
Exception

enableModifiedDeploymentChecks

public void enableModifiedDeploymentChecks(boolean flag)
Specified by:
enableModifiedDeploymentChecks in interface org.jboss.profileservice.spi.MutableProfile

getModifiedDeployments

public Collection<org.jboss.profileservice.spi.ModificationInfo> getModifiedDeployments()
                                                                                 throws Exception
Specified by:
getModifiedDeployments in interface org.jboss.profileservice.spi.DeploymentRepository
Specified by:
getModifiedDeployments in interface org.jboss.profileservice.spi.MutableProfile
Overrides:
getModifiedDeployments in class HotDeploymentRepository
Throws:
Exception

checkForAdditions

protected void checkForAdditions(List<org.jboss.profileservice.spi.ModificationInfo> modified)
                          throws Exception
Description copied from class: HotDeploymentRepository
Check for additions.

Overrides:
checkForAdditions in class HotDeploymentRepository
Parameters:
modified - the modified list
Throws:
Exception - for any error

applyAddedDeployments

protected void applyAddedDeployments(URI applicationDir,
                                     List<org.jboss.profileservice.spi.ModificationInfo> modified,
                                     List<org.jboss.virtual.VirtualFile> added)
                              throws Exception
Description copied from class: HotDeploymentRepository
Apply added deployments.

Overrides:
applyAddedDeployments in class HotDeploymentRepository
Parameters:
applicationDir - the app dir
modified - the modifed list
added - the added deployments
Throws:
Exception - for any error

getKey

public org.jboss.profileservice.spi.ProfileKey getKey()
Specified by:
getKey in interface org.jboss.profileservice.spi.Profile

getSubProfiles

public Collection<org.jboss.profileservice.spi.ProfileKey> getSubProfiles()
Specified by:
getSubProfiles in interface org.jboss.profileservice.spi.Profile

hasDeployment

public boolean hasDeployment(String name)
Specified by:
hasDeployment in interface org.jboss.profileservice.spi.Profile

isMutable

public boolean isMutable()
Specified by:
isMutable in interface org.jboss.profileservice.spi.Profile


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.