|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.system.server.profileservice.repository.AbstractVFSProfileSource
public abstract class AbstractVFSProfileSource
A abstract VFS based source for profile deployments.
Field Summary | |
---|---|
protected org.jboss.logging.Logger |
log
The logger. |
protected Collection<URI> |
uris
The repository uris. |
Constructor Summary | |
---|---|
AbstractVFSProfileSource(URI[] uris)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Collection<URI> uris
protected final org.jboss.logging.Logger log
Constructor Detail |
---|
public AbstractVFSProfileSource(URI[] uris)
Method Detail |
---|
public org.jboss.virtual.VirtualFileFilter getDeploymentFilter()
public void setDeploymentFilter(org.jboss.virtual.VirtualFileFilter deploymentFilter)
public boolean isRecursiveScan()
public void setRecursiveScan(boolean recursiveScan)
public URI[] getRepositoryURIs()
public Set<String> getDeploymentNames()
public Collection<org.jboss.profileservice.spi.ProfileDeployment> getDeployments()
public long getLastModified()
public void destroy()
public void addDeployment(String vfsPath, org.jboss.profileservice.spi.ProfileDeployment d) throws Exception
vfsPath
- the deployment named
- the deployment
Exception
public org.jboss.profileservice.spi.ProfileDeployment getDeployment(String vfsPath) throws org.jboss.profileservice.spi.NoSuchDeploymentException
vfsPath
- the deployment
org.jboss.profileservice.spi.NoSuchDeploymentException
public org.jboss.profileservice.spi.ProfileDeployment removeDeployment(String vfsPath) throws Exception
vfsPath
- the deployment name
org.jboss.profileservice.spi.NoSuchProfileException
- if the deployment does not exist
Exception
protected void loadApplications(org.jboss.virtual.VirtualFile applicationDir) throws Exception
applicationDir
- the application directory
IOException
Exception
protected void addedDeployments(List<org.jboss.virtual.VirtualFile> list, org.jboss.virtual.VirtualFile root) throws IOException, URISyntaxException
list
- a list of virtual files, where new deployments are added toroot
- the root to scan
IOException
URISyntaxException
protected void addedDeployment(List<org.jboss.virtual.VirtualFile> list, org.jboss.virtual.VirtualFile component) throws IOException, URISyntaxException
list
- a list of virtual files, where new deployments are added tocomponent
- the root file
IOException
URISyntaxException
protected boolean acceptsDeployment(String name)
name
- the deployment name
protected List<String> findDeploymentContent(String name)
name
- the deployment name
protected String addVirtualFileCache(org.jboss.virtual.VirtualFile vf) throws MalformedURLException, URISyntaxException
vf
- the virtual file
MalformedURLException
URISyntaxException
protected org.jboss.virtual.VirtualFile getCachedVirtualFile(String name)
name
- the name
protected org.jboss.virtual.VirtualFile getCachedVirtualFile(URI uri) throws IOException
uri
- the uri
IOException
protected static org.jboss.profileservice.spi.ProfileDeployment createDeployment(org.jboss.virtual.VirtualFile vf) throws Exception
vf
- the deployment root
Exception
protected void updateLastModfied()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |