Author: heiko.braun(a)jboss.com
Date: 2007-07-24 03:39:54 -0400 (Tue, 24 Jul 2007)
New Revision: 3968
Modified:
trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/AbstractDeployerHook.java
Log:
Fix initialization
Modified:
trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/AbstractDeployerHook.java
===================================================================
---
trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/AbstractDeployerHook.java 2007-07-23
16:11:06 UTC (rev 3967)
+++
trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/AbstractDeployerHook.java 2007-07-24
07:39:54 UTC (rev 3968)
@@ -48,24 +48,27 @@
protected final Logger log = Logger.getLogger(getClass());
protected DeploymentAspectManager deploymentAspectManager;
+ private DeploymentModelFactory deploymentModelFactory;
+
private List<ObjectName> phaseOneInterceptors;
private List<ObjectName> phaseTwoInterceptors;
- private DeploymentModelFactory deploymentModelFactory;
-
- public AbstractDeployerHook()
+ /**
+ * MC callback in create step
+ * @throws Exception
+ */
+ public void create() throws Exception
{
SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
deploymentModelFactory = spiProvider.getSPI(DeploymentModelFactory.class);
+ deploymentAspectManager =
spiProvider.getSPI(DeploymentAspectManagerFactory.class).createDeploymentAspectManager(getDeploymentType());
if(null == deploymentModelFactory)
throw new IllegalStateException("Unable to create
spi.deployment.DeploymentModelFactory");
- }
- public void setDeploymentAspectManager(DeploymentAspectManager manager)
- {
- this.deploymentAspectManager = manager;
- }
+ if(null == deploymentAspectManager)
+ throw new IllegalStateException("Unable to create
spi.deployment.DeploymentAspectManager");
+ }
public Deployment createDeployment()
{
Show replies by date