当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 hibernate API Documentation 英文版文档
HARDeployer (JBoss Hibernate API) - JBoss 4.0.1 sp1 hibernate API Documentation 英文版文档
org.jboss.hibernate.har
Class HARDeployer
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.deployment.SubDeployerSupport
org.jboss.hibernate.har.HARDeployer
- All Implemented Interfaces:
- HARDeployerMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean, org.jboss.deployment.SubDeployer, org.jboss.deployment.SubDeployerMBean
- public class HARDeployer
- extends org.jboss.deployment.SubDeployerSupport
- implements HARDeployerMBean
Deployer for Hibernate har archives. A Hibernate archive
is expected to have a .har extension and include:
- hibernate-service.xml
- persistent classes
- hbm.xml mapping documents.
- Version:
- $Revision: 1.2.2.2 $
- Author:
- Alexey Loubyansky, Dimitris Andreadis
Nested classes inherited from class org.jboss.deployment.SubDeployerSupport |
org.jboss.deployment.SubDeployerSupport.ClassConfiguration |
Fields inherited from class org.jboss.deployment.SubDeployerSupport |
CONFIGURATION, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Fields inherited from interface org.jboss.deployment.SubDeployer |
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 |
Constructor Summary |
HARDeployer()
Default CTOR used to set default values to the Suffixes and RelativeOrder
attributes. |
Method Summary |
boolean |
accepts(org.jboss.deployment.DeploymentInfo di)
|
void |
create(org.jboss.deployment.DeploymentInfo di)
|
protected void |
deployUrl(org.jboss.deployment.DeploymentInfo di,
URL url,
String name)
|
void |
destroy(org.jboss.deployment.DeploymentInfo di)
|
Iterator |
getDeployedApplications()
Returns the deployed applications. |
protected javax.management.ObjectName |
getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
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(org.jboss.deployment.DeploymentInfo di)
|
boolean |
isDeployable(String name,
URL url)
|
protected void |
processNestedDeployments(org.jboss.deployment.DeploymentInfo di)
This is here as a reminder that we may not want to allow ejb jars to
have arbitrary sub deployments. |
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(org.jboss.deployment.DeploymentInfo di)
|
protected void |
startService()
Get a reference to the ServiceController |
void |
stop(org.jboss.deployment.DeploymentInfo di)
|
protected void |
stopService()
Implements the template method in superclass. |
Methods inherited from class org.jboss.deployment.SubDeployerSupport |
addDeployableFiles, addDeployableJar, createService, destroyService, getRelativeOrder, getSuffixes, setRelativeOrder, setSuffixes |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
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 |
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.SubDeployerMBean |
getRelativeOrder, getSuffixes, setRelativeOrder, setSuffixes |
Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Methods inherited from interface org.jboss.deployment.SubDeployer |
getServiceName |
HARDeployer
public HARDeployer()
- Default CTOR used to set default values to the Suffixes and RelativeOrder
attributes. Those are read at subdeployer registration time by the MainDeployer
to alter its SuffixOrder.
getDeployedApplications
public Iterator getDeployedApplications()
- Returns the deployed applications.
- Specified by:
getDeployedApplications
in interface HARDeployerMBean
getObjectName
protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws javax.management.MalformedObjectNameException
- Throws:
javax.management.MalformedObjectNameException
startService
protected void startService()
throws Exception
- Get a reference to the ServiceController
- Throws:
Exception
stopService
protected void stopService()
throws Exception
- Implements the template method in superclass. This method stops all the
applications in this server.
- Throws:
Exception
getValidateDTDs
public boolean getValidateDTDs()
- Get the flag indicating that ejb-jar.dtd, jboss.dtd &
jboss-web.dtd conforming documents should be validated
against the DTD.
- Specified by:
getValidateDTDs
in interface HARDeployerMBean
setValidateDTDs
public 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.
- Specified by:
setValidateDTDs
in interface HARDeployerMBean
accepts
public boolean accepts(org.jboss.deployment.DeploymentInfo di)
- Specified by:
accepts
in interface org.jboss.deployment.SubDeployerMBean
init
public void init(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Specified by:
init
in interface org.jboss.deployment.SubDeployerMBean
- Throws:
org.jboss.deployment.DeploymentException
processNestedDeployments
protected void processNestedDeployments(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- This is here as a reminder that we may not want to allow ejb jars to
have arbitrary sub deployments. Currently we do.
It is also here as a temporary solution to get JSR-109 simultaneous
web service deployments going
- Parameters:
di
-
- Throws:
org.jboss.deployment.DeploymentException
deployUrl
protected void deployUrl(org.jboss.deployment.DeploymentInfo di,
URL url,
String name)
throws org.jboss.deployment.DeploymentException
- Throws:
org.jboss.deployment.DeploymentException
isDeployable
public boolean isDeployable(String name,
URL url)
create
public void create(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Specified by:
create
in interface org.jboss.deployment.SubDeployerMBean
- Throws:
org.jboss.deployment.DeploymentException
start
public void start(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Specified by:
start
in interface org.jboss.deployment.SubDeployerMBean
- Throws:
org.jboss.deployment.DeploymentException
stop
public void stop(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Specified by:
stop
in interface org.jboss.deployment.SubDeployerMBean
- Throws:
org.jboss.deployment.DeploymentException
destroy
public void destroy(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Specified by:
destroy
in interface org.jboss.deployment.SubDeployerMBean
- Throws:
org.jboss.deployment.DeploymentException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.