You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2004/01/07 13:49:42 UTC
cvs commit: avalon/merlin/composition/impl/src/java/org/apache/avalon/composition/model/impl DefaultDeploymentModel.java
mcconnell 2004/01/07 04:49:42
Modified: merlin/composition/impl/src/java/org/apache/avalon/composition/model/impl
Tag: Ver_3_4 DefaultDeploymentModel.java
Log:
Add handler assignment implementation.
Revision Changes Path
No revision
No revision
1.9.2.7 +25 -1 avalon/merlin/composition/impl/src/java/org/apache/avalon/composition/model/impl/DefaultDeploymentModel.java
Index: DefaultDeploymentModel.java
===================================================================
RCS file: /home/cvs/avalon/merlin/composition/impl/src/java/org/apache/avalon/composition/model/impl/DefaultDeploymentModel.java,v
retrieving revision 1.9.2.6
retrieving revision 1.9.2.7
diff -u -r1.9.2.6 -r1.9.2.7
--- DefaultDeploymentModel.java 6 Jan 2004 23:16:49 -0000 1.9.2.6
+++ DefaultDeploymentModel.java 7 Jan 2004 12:49:42 -0000 1.9.2.7
@@ -82,6 +82,12 @@
private final DeploymentContext m_context;
//--------------------------------------------------------------
+ // muttable state
+ //--------------------------------------------------------------
+
+ private Object m_handler = null;
+
+ //--------------------------------------------------------------
// constructor
//--------------------------------------------------------------
@@ -160,6 +166,24 @@
public DeploymentModel[] getProviderGraph()
{
return m_context.getDependencyGraph().getProviderGraph( this );
+ }
+
+ /**
+ * Set the runtime handler for the model.
+ * @param handler the runtime handler
+ */
+ public void setHandler( Object handler )
+ {
+ m_handler = handler;
+ }
+
+ /**
+ * Get the assigned runtime handler for the model.
+ * @return the runtime handler
+ */
+ public Object getHandler()
+ {
+ return m_handler;
}
//--------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org