Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jbossejb3 instantiator #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void deploy(final DeploymentUnit unit) throws DeploymentException
// Get the EJB
final JBossEnterpriseBeanMetaData ejb = it.next();
// Get an instantiator to use for the EJB
final BeanInstantiator instantiator = this.getBeanInstantiator(ejb);
final BeanInstantiator instantiator = this.getBeanInstantiator(unit, ejb);
// Ensure the instantiator was supplied
if (instantiator == null)
{
Expand Down Expand Up @@ -169,12 +169,14 @@ protected void processMetadata(BeanMetaDataBuilder beanMetaDataBuilder, Deployme

/**
* Obtains the {@link BeanInstantiator} implementation to use for the
* specified {@link JBossEnterpriseBeanMetaData}
* specified {@link DeploymentUnit} and {@link JBossEnterpriseBeanMetaData}
*
*
* @param unit
* @param ebmd
* @return
*/
protected abstract BeanInstantiator getBeanInstantiator(JBossEnterpriseBeanMetaData ebmd);
protected abstract BeanInstantiator getBeanInstantiator(DeploymentUnit unit, JBossEnterpriseBeanMetaData ebmd);

// ------------------------------------------------------------------------------||
// Helper Methods ---------------------------------------------------------------||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ public SingletonBeanInstantiatorDeployer(final BeanInstantiator beanInstantiator

/**
* {@inheritDoc}
* @see org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase#getBeanInstantiator(org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData)
* @see BeanInstantiatorDeployerBase#getBeanInstantiator(org.jboss.deployers.structure.spi.DeploymentUnit, org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData)
*/
@Override
protected BeanInstantiator getBeanInstantiator(final JBossEnterpriseBeanMetaData ebmd)
protected BeanInstantiator getBeanInstantiator(DeploymentUnit unit, final JBossEnterpriseBeanMetaData ebmd)
{
// Use the shared instance
return beanInstantiator;
Expand Down