[jboss-cvs] JBossAS SVN: r82090 - projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/main.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Dec 6 17:40:35 EST 2008
Author: alesj
Date: 2008-12-06 17:40:35 -0500 (Sat, 06 Dec 2008)
New Revision: 82090
Modified:
projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/main/MainDeployerImpl.java
Log:
javadocs
Modified: projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/main/MainDeployerImpl.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/main/MainDeployerImpl.java 2008-12-06 16:47:04 UTC (rev 82089)
+++ projects/jboss-deployers/trunk/deployers-impl/src/main/java/org/jboss/deployers/plugins/main/MainDeployerImpl.java 2008-12-06 22:40:35 UTC (rev 82090)
@@ -75,7 +75,7 @@
private StructuralDeployers structuralDeployers;
/** The ManagedDeploymentCreator plugin */
- private ManagedDeploymentCreator mgtDeploymentCreator = null;
+ private ManagedDeploymentCreator mgtDeploymentCreator;
/** The deployments by name */
private Map<String, DeploymentContext> topLevelDeployments = new ConcurrentHashMap<String, DeploymentContext>();
@@ -161,11 +161,21 @@
structuralDeployers = deployers;
}
+ /**
+ * Get managed deployment creator.
+ *
+ * @return the managed deployment creator
+ */
public ManagedDeploymentCreator getMgtDeploymentCreator()
{
return mgtDeploymentCreator;
}
+ /**
+ * Set managed deployment creator.
+ *
+ * @param mgtDeploymentCreator the managed deployment creator
+ */
public void setMgtDeploymentCreator(ManagedDeploymentCreator mgtDeploymentCreator)
{
this.mgtDeploymentCreator = mgtDeploymentCreator;
@@ -226,16 +236,33 @@
return topLevelDeployments.get(name);
}
+ // TODO - introduce some interface or push to MDStructure
+
+ /**
+ * Get all deployments.
+ *
+ * @return all deployments
+ */
public Collection<DeploymentContext> getAll()
{
return Collections.unmodifiableCollection(allDeployments.values());
}
+ /**
+ * Get errors.
+ *
+ * @return the errors
+ */
public Collection<DeploymentContext> getErrors()
{
return Collections.unmodifiableCollection(errorDeployments.values());
}
+ /**
+ * Get missing deployers deployments.
+ *
+ * @return the missing deployer deployments
+ */
public Collection<Deployment> getMissingDeployer()
{
return Collections.unmodifiableCollection(missingDeployers.values());
@@ -757,6 +784,9 @@
public ManagedDeployment getManagedDeployment(String name) throws DeploymentException
{
+ if (mgtDeploymentCreator == null)
+ throw new IllegalArgumentException("Null managed deployment creator.");
+
DeploymentContext context = getDeploymentContext(name, true);
Map<String, ManagedObject> rootMOs = getManagedObjects(context);
ManagedDeployment root = mgtDeploymentCreator.build(context.getDeploymentUnit(), rootMOs, null);
@@ -829,6 +859,9 @@
protected void processManagedDeployment(DeploymentContext context, ManagedDeployment parent)
throws DeploymentException
{
+ if (mgtDeploymentCreator == null)
+ throw new IllegalArgumentException("Null managed deployment creator.");
+
DeploymentUnit unit = context.getDeploymentUnit();
Map<String, ManagedObject> MOs = getManagedObjects(context);
ManagedDeployment md = mgtDeploymentCreator.build(unit, MOs, parent);
More information about the jboss-cvs-commits
mailing list