org.jboss.jpa.deployment
Class PersistenceDeployment

java.lang.Object
  extended by org.jboss.jpa.deployment.PersistenceDeployment

Deprecated.

@Deprecated
public class PersistenceDeployment
extends Object

An EjbModule represents a collection of beans that are deployed as a unit.

Version:
$Revision: 79848 $
Author:
Bill Burke, adrian@jboss.org

Field Summary
protected  List<String> explicitEntityClasses
          Deprecated.  
protected  boolean hasEntities
          Deprecated.  
protected  InitialContext initialContext
          Deprecated.  
protected  List<PersistenceUnitDeployment> persistenceUnitDeployments
          Deprecated.  
protected  org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit
          Deprecated.  
 
Constructor Summary
PersistenceDeployment(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit, String earName, org.jboss.metadata.jpa.spec.PersistenceMetaData metaData)
          Deprecated.  
 
Method Summary
 void create()
          Deprecated. Create all EJB containers and Persistence Units The only things that should be initialized is metadata that does not need access to any other deployment.
 void destroy()
          Deprecated.  
 org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit getDeploymentUnit()
          Deprecated.  
protected  String getJaccContextId()
          Deprecated.  
 org.jboss.metadata.jpa.spec.PersistenceMetaData getMetaData()
          Deprecated. Get the meta data associated with this deployment or null if none.
 String getName()
          Deprecated.  
 List<PersistenceUnitDeployment> getPersistenceUnitDeployments()
          Deprecated.  
 String getScopeKernelName()
          Deprecated. Returns a partial MBean attribute name of the form ",ear=foo.ear,jar=foo.jar"
protected  void initializePersistenceUnits()
          Deprecated.  
 void start()
          Deprecated.  
protected  void startPersistenceUnits()
          Deprecated.  
 void stop()
          Deprecated.  
protected  void stopPersistenceUnits()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unit

protected org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit
Deprecated. 

hasEntities

protected boolean hasEntities
Deprecated. 

explicitEntityClasses

protected List<String> explicitEntityClasses
Deprecated. 

persistenceUnitDeployments

protected List<PersistenceUnitDeployment> persistenceUnitDeployments
Deprecated. 

initialContext

protected InitialContext initialContext
Deprecated. 
Constructor Detail

PersistenceDeployment

public PersistenceDeployment(org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit unit,
                             String earName,
                             org.jboss.metadata.jpa.spec.PersistenceMetaData metaData)
Deprecated. 
Method Detail

getDeploymentUnit

public org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit getDeploymentUnit()
Deprecated. 

getScopeKernelName

public String getScopeKernelName()
Deprecated. 
Returns a partial MBean attribute name of the form ",ear=foo.ear,jar=foo.jar"

Returns:

getJaccContextId

protected String getJaccContextId()
Deprecated. 

getPersistenceUnitDeployments

public List<PersistenceUnitDeployment> getPersistenceUnitDeployments()
Deprecated. 

create

public void create()
            throws Exception
Deprecated. 
Create all EJB containers and Persistence Units The only things that should be initialized is metadata that does not need access to any other deployment. This is because we want the entire EAR to be initialized so that we do not have to guess on dependencies MBean names. This is because of the silly scoping rules for persistence units and EJBs.

Throws:
Exception

destroy

public void destroy()
Deprecated. 

start

public void start()
           throws Exception
Deprecated. 
Throws:
Exception

stop

public void stop()
Deprecated. 

initializePersistenceUnits

protected void initializePersistenceUnits()
                                   throws Exception
Deprecated. 
Throws:
Exception

startPersistenceUnits

protected void startPersistenceUnits()
Deprecated. 

stopPersistenceUnits

protected void stopPersistenceUnits()
Deprecated. 

getMetaData

public org.jboss.metadata.jpa.spec.PersistenceMetaData getMetaData()
Deprecated. 
Get the meta data associated with this deployment or null if none.

Returns:
meta data or null

getName

public String getName()
Deprecated. 


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