org.jboss.system.tools
Class ProfileServiceDeploymentRepositoryAdapter

java.lang.Object
  extended by org.jboss.system.tools.ProfileServiceDeploymentRepositoryAdapter
All Implemented Interfaces:
DeploymentRepositoryAdapter

public class ProfileServiceDeploymentRepositoryAdapter
extends Object
implements DeploymentRepositoryAdapter

Profile deployment repository adapter.

Author:
Emanuel Muckenhuber, Ales Justin

Nested Class Summary
static class ProfileServiceDeploymentRepositoryAdapter.DeploymentScannerProfile
           
 
Constructor Summary
ProfileServiceDeploymentRepositoryAdapter(Scanner scanner, org.jboss.profileservice.spi.ProfileService ps, org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker checker)
           
 
Method Summary
 void addURL(URL url)
          Add url.
 void create()
          Create profile.
 void destroy()
          Stop profile.
 boolean hasURL(URL url)
          Does this repository contain a url.
 String[] listDeployedURLs()
          List deployed urls as strings.
protected  void registerProfile()
          Register profile.
 void removeURL(URL url)
          Remove url.
 void resume()
          Resume scan.
 void stopProfile()
          Stop deactivates and unregisters the transient deployments profile.
 void suspend()
          Suspend scan.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileServiceDeploymentRepositoryAdapter

public ProfileServiceDeploymentRepositoryAdapter(Scanner scanner,
                                                 org.jboss.profileservice.spi.ProfileService ps,
                                                 org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker checker)
Method Detail

create

public void create()
            throws Exception
Create profile.

Throws:
Exception - for any error

destroy

public void destroy()
Stop profile.


registerProfile

protected void registerProfile()
                        throws Exception
Register profile.

Throws:
Exception - for any error

resume

public void resume()
Description copied from interface: DeploymentRepositoryAdapter
Resume scan.

Specified by:
resume in interface DeploymentRepositoryAdapter

suspend

public void suspend()
Description copied from interface: DeploymentRepositoryAdapter
Suspend scan.

Specified by:
suspend in interface DeploymentRepositoryAdapter

stopProfile

public void stopProfile()
Stop deactivates and unregisters the transient deployments profile.


addURL

public void addURL(URL url)
            throws URISyntaxException
Description copied from interface: DeploymentRepositoryAdapter
Add url.

Specified by:
addURL in interface DeploymentRepositoryAdapter
Parameters:
url - the url
Throws:
URISyntaxException - for any error

removeURL

public void removeURL(URL url)
               throws URISyntaxException
Description copied from interface: DeploymentRepositoryAdapter
Remove url.

Specified by:
removeURL in interface DeploymentRepositoryAdapter
Parameters:
url - the url
Throws:
URISyntaxException - for any error

hasURL

public boolean hasURL(URL url)
               throws URISyntaxException
Description copied from interface: DeploymentRepositoryAdapter
Does this repository contain a url.

Specified by:
hasURL in interface DeploymentRepositoryAdapter
Parameters:
url - the url
Returns:
true if the url is contained
Throws:
URISyntaxException - for any error

listDeployedURLs

public String[] listDeployedURLs()
Description copied from interface: DeploymentRepositoryAdapter
List deployed urls as strings.

Specified by:
listDeployedURLs in interface DeploymentRepositoryAdapter
Returns:
the list of deployed urls


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