|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.server.deployment.jboss.AbstractDeploymentFactory
public abstract class AbstractDeploymentFactory
Field Summary | |
---|---|
protected ServerDeployerMBean |
deployer
The server deployer. |
protected org.jboss.logging.Logger |
log
The logger. |
protected java.lang.String |
name
The short name. |
protected boolean |
registrationControlledByService
True if the service lifecycle controls the registration against the server deployer. |
protected java.lang.String |
setupLocation
The location of the optional setup file. |
protected java.net.URL |
setupURL
The setup url constructed from the setup location. |
Constructor Summary | |
---|---|
protected |
AbstractDeploymentFactory()
The default constructor initialize the service with the registration controlled by the service. |
Method Summary | |
---|---|
boolean |
acceptDir(java.net.URL url)
Accept only the WEB-INF directory by default. |
void |
create()
Set the setup url with the resource obtained from the thread context class loader using the value of setup location if this one is not null. |
void |
destroy()
Set to null the setup url. |
ServerDeployerMBean |
getDeployer()
|
java.lang.String |
getName()
|
java.lang.String |
getSetupLocation()
|
java.net.URL |
getSetupURL()
|
boolean |
isRegistrationControlledByService()
|
void |
registerFactory()
Register the factory against the server deployer and kick off the deployment of the urls that this factory can deploy. |
void |
setDeployer(ServerDeployerMBean deployer)
|
void |
setRegistrationControlledByService(boolean registrationControlledByService)
|
void |
setSetupLocation(java.lang.String setupLocation)
|
void |
start()
Register the factory only if it is controlled by the service lifecycle. |
void |
stop()
Unregister the factory only if it is controlled by the service lifecycle. |
void |
unregisterFactory()
Unregister the factory against the server deployer and shutdown the deployment of the urls that this factory can deploy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.portal.server.deployment.jboss.DeploymentFactory |
---|
newInstance |
Methods inherited from interface org.jboss.portal.common.net.URLFilter |
---|
acceptFile |
Field Detail |
---|
protected ServerDeployerMBean deployer
protected boolean registrationControlledByService
protected java.lang.String setupLocation
protected java.net.URL setupURL
protected final java.lang.String name
protected final org.jboss.logging.Logger log
Constructor Detail |
---|
protected AbstractDeploymentFactory()
Method Detail |
---|
public java.lang.String getName()
public boolean acceptDir(java.net.URL url)
acceptDir
in interface URLFilter
public java.lang.String getSetupLocation()
public void setSetupLocation(java.lang.String setupLocation)
public boolean isRegistrationControlledByService()
public void setRegistrationControlledByService(boolean registrationControlledByService)
public ServerDeployerMBean getDeployer()
public void setDeployer(ServerDeployerMBean deployer)
public void registerFactory()
public void unregisterFactory()
public java.net.URL getSetupURL()
public void create() throws java.lang.Exception
java.lang.Exception
public void start() throws java.lang.Exception
java.lang.Exception
public void stop()
public void destroy() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |