|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.deployment.SubDeployerSupport (src)
org.jboss.hibernate.har.HARDeployer
Deployer for Hibernate har archives. A Hibernate archive is expected to have a .har extension and include:
Nested Class Summary |
Nested classes inherited from class org.jboss.deployment.SubDeployerSupport (src) |
SubDeployerSupport.ClassConfiguration (src) |
Field Summary |
Fields inherited from class org.jboss.deployment.SubDeployerSupport (src) |
CONFIGURATION, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.deployment.SubDeployer (src) |
CREATE_NOTIFICATION, DESTROY_NOTIFICATION, INIT_NOTIFICATION, RELATIVE_ORDER_100, RELATIVE_ORDER_200, RELATIVE_ORDER_300, RELATIVE_ORDER_400, RELATIVE_ORDER_500, RELATIVE_ORDER_600, RELATIVE_ORDER_700, RELATIVE_ORDER_800, RELATIVE_ORDER_900, START_NOTIFICATION, STOP_NOTIFICATION |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
HARDeployer()
Default CTOR used to set default values to the Suffixes and RelativeOrder attributes. |
Method Summary | |
boolean |
accepts(DeploymentInfo (src) di)
The HARDeployer accepts either archives ending in '.har' or exploded directories (with name ending in '.har/'). |
void |
create(DeploymentInfo (src) di)
Sub-classes should override this method to provide custom 'create' logic. |
protected void |
deployUrl(DeploymentInfo (src) di,
java.net.URL url,
java.lang.String name)
|
void |
destroy(DeploymentInfo (src) di)
Sub-classes should override this method to provide custom 'destroy' logic. |
java.util.Iterator |
getDeployedApplications()
Returns the deployed applications. |
protected ObjectName (src) |
getObjectName(MBeanServer (src) server,
ObjectName (src) name)
Sub-classes should override this method if they only need to set their object name during MBean pre-registration. |
boolean |
getValidateDTDs()
Get the flag indicating that ejb-jar.dtd, jboss.dtd & jboss-web.dtd conforming documents should be validated against the DTD. |
void |
init(DeploymentInfo (src) di)
Initialize the given deployment. |
boolean |
isDeployable(java.lang.String name,
java.net.URL url)
This method returns true if the name is a recognized archive file. |
protected void |
processNestedDeployments(DeploymentInfo (src) di)
The processNestedDeployments method searches for any nested and
deployable elements. |
void |
setValidateDTDs(boolean validate)
Set the flag indicating that ejb-jar.dtd, jboss.dtd & jboss-web.dtd conforming documents should be validated against the DTD. |
void |
start(DeploymentInfo (src) di)
Sub-classes should override this method to provide custom 'start' logic. |
protected void |
startService()
Get a reference to the ServiceController |
void |
stop(DeploymentInfo (src) di)
Sub-classes should override this method to provide custom 'stop' logic. |
protected void |
stopService()
Implements the template method in superclass. |
Methods inherited from class org.jboss.deployment.SubDeployerSupport (src) |
addDeployableFiles, addDeployableJar, createService, destroyService, emitNotification, getRelativeOrder, getSuffixes, setRelativeOrder, setSuffixes |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.deployment.SubDeployer (src) |
getServiceName |
Constructor Detail |
public HARDeployer()
Method Detail |
public java.util.Iterator getDeployedApplications()
protected ObjectName (src) getObjectName(MBeanServer (src) server, ObjectName (src) name) throws MalformedObjectNameException (src)
ServiceMBeanSupport (src)
getObjectName
in class ServiceMBeanSupport (src)
MalformedObjectNameException (src)
protected void startService() throws java.lang.Exception
startService
in class SubDeployerSupport (src)
java.lang.Exception
protected void stopService() throws java.lang.Exception
stopService
in class SubDeployerSupport (src)
java.lang.Exception
public boolean getValidateDTDs()
public void setValidateDTDs(boolean validate)
protected void processNestedDeployments(DeploymentInfo (src) di) throws DeploymentException (src)
SubDeployerSupport (src)
processNestedDeployments
method searches for any nested and
deployable elements. Only Directories and Zipped archives are processed,
and those are delegated to the addDeployableFiles and addDeployableJar
methods respectively. This method can be overridden for alternate
behaviour.
processNestedDeployments
in class SubDeployerSupport (src)
DeploymentException (src)
protected void deployUrl(DeploymentInfo (src) di, java.net.URL url, java.lang.String name) throws DeploymentException (src)
deployUrl
in class SubDeployerSupport (src)
DeploymentException (src)
public boolean isDeployable(java.lang.String name, java.net.URL url)
SubDeployerSupport (src)
isDeployable
in class SubDeployerSupport (src)
name
- The "short-name" of the URL. It will have any trailing '/'
characters removed, and any directory structure has been removed.url
- The full url.
public boolean accepts(DeploymentInfo (src) di)
di
- The deployment info for the deployment to be checked for
acceptance.
public void init(DeploymentInfo (src) di) throws DeploymentException (src)
init
in interface SubDeployer (src)
init
in class SubDeployerSupport (src)
di
- The deployment to be initialized.
DeploymentException (src)
public void create(DeploymentInfo (src) di) throws DeploymentException (src)
SubDeployerSupport (src)
create
in interface SubDeployer (src)
create
in class SubDeployerSupport (src)
DeploymentException (src)
public void start(DeploymentInfo (src) di) throws DeploymentException (src)
SubDeployerSupport (src)
start
in interface SubDeployer (src)
start
in class SubDeployerSupport (src)
DeploymentException (src)
public void stop(DeploymentInfo (src) di) throws DeploymentException (src)
SubDeployerSupport (src)
stop
in interface SubDeployer (src)
stop
in class SubDeployerSupport (src)
DeploymentException (src)
public void destroy(DeploymentInfo (src) di) throws DeploymentException (src)
SubDeployerSupport (src)
destroy
in interface SubDeployer (src)
destroy
in class SubDeployerSupport (src)
DeploymentException (src)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |