Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2081 - in development/laboratory/plus: standard/builder test/example/impl test/example/impl/src/main/net/dpml/test/hello/impl

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT dpml.net
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2081 - in development/laboratory/plus: standard/builder test/example/impl test/example/impl/src/main/net/dpml/test/hello/impl
  • Date: Tue, 15 Mar 2005 05:23:26 -0500

Author: mcconnell AT dpml.net
Date: Tue Mar 15 05:23:26 2005
New Revision: 2081

Added:

development/laboratory/plus/test/example/impl/src/main/net/dpml/test/hello/impl/HelloMBean.java
Modified:
development/laboratory/plus/standard/builder/build.xml
development/laboratory/plus/test/example/impl/build.xml

development/laboratory/plus/test/example/impl/src/main/net/dpml/test/hello/impl/HelloComponent.java
Log:
add some hints concerning management

Modified: development/laboratory/plus/standard/builder/build.xml
==============================================================================
--- development/laboratory/plus/standard/builder/build.xml (original)
+++ development/laboratory/plus/standard/builder/build.xml Tue Mar 15
05:23:26 2005
@@ -12,6 +12,7 @@

<filter token="TYPE-BUILDER-URI" value="${builder.plugin}"/>
<filter token="PART-BUILDER-URI" value="${builder.plugin}"/>
+ <filter token="BUILDER-URI" value="${builder.plugin}"/>

<filter token="TYPE-HANDLER-URI" value="${control.plugin}"/>
<filter token="PART-HANDLER-URI" value="${control.plugin}"/>

Modified: development/laboratory/plus/test/example/impl/build.xml
==============================================================================
--- development/laboratory/plus/test/example/impl/build.xml (original)
+++ development/laboratory/plus/test/example/impl/build.xml Tue Mar 15
05:23:26 2005
@@ -14,9 +14,6 @@

<catalog xmlns="plugin:dpml/metro/dpml-metro-builder-impl">
<type class="net.dpml.test.hello.impl.HelloComponent">
- <controls>
- <control name="debugger" uri="${debugger.uri}"/>
- </controls>
<parts>
<component key="OutputHandler"
class="net.dpml.test.hello.impl.DefaultOutputHandler"/>
</parts>

Modified:
development/laboratory/plus/test/example/impl/src/main/net/dpml/test/hello/impl/HelloComponent.java
==============================================================================
---
development/laboratory/plus/test/example/impl/src/main/net/dpml/test/hello/impl/HelloComponent.java
(original)
+++
development/laboratory/plus/test/example/impl/src/main/net/dpml/test/hello/impl/HelloComponent.java
Tue Mar 15 05:23:26 2005
@@ -27,8 +27,12 @@
* @author <a href="mailto:dev-dpml AT lists.ibiblio.org";>The Digital Product
Meta Library</a>
* @version $Revision: 1.2 $ $Date: 2004/03/17 10:30:09 $
*/
-public class HelloComponent implements Hello
+public class HelloComponent implements Hello, HelloMBean
{
+ //----------------------------------------------------
+ // criteria
+ //----------------------------------------------------
+
public interface Dependencies
{
OutputHandler getPublisher();
@@ -39,18 +43,51 @@
OutputHandler getOutputHandler();
}

+ public interface Views
+ {
+ // thinking needed here
+ }
+
+ //----------------------------------------------------
+ // state
+ //----------------------------------------------------
+
+ private String m_message;
private Dependencies m_dependencies;
private Parts m_parts;

+ //----------------------------------------------------
+ // constructor
+ //----------------------------------------------------
+
public HelloComponent( Dependencies dependencies, Parts parts )
{
m_dependencies = dependencies;
m_parts = parts;
}

+ //----------------------------------------------------
+ // implementation
+ //----------------------------------------------------
+
public void sayHello()
{
- m_dependencies.getPublisher().publish( "hello via publisher" );
- m_parts.getOutputHandler().publish( "hello via part" );
+ String message = getMessage();
+ m_dependencies.getPublisher().publish( message );
+ m_parts.getOutputHandler().publish( message );
+ }
+
+ //----------------------------------------------------
+ // management
+ //----------------------------------------------------
+
+ public void setMessage( String message )
+ {
+ m_message = message;
+ }
+
+ public String getMessage()
+ {
+ return m_message;
}
}

Added:
development/laboratory/plus/test/example/impl/src/main/net/dpml/test/hello/impl/HelloMBean.java
==============================================================================
--- (empty file)
+++
development/laboratory/plus/test/example/impl/src/main/net/dpml/test/hello/impl/HelloMBean.java
Tue Mar 15 05:23:26 2005
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2005 Stephen J. McConnell
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.dpml.test.hello.impl;
+
+/**
+ * The HelloComponent MBean.
+ *
+ * @author <a href="mailto:dev-dpml AT lists.ibiblio.org";>The Digital Product
Meta Library</a>
+ * @version $Revision: 1.2 $ $Date: 2004/03/17 10:30:09 $
+ */
+public interface HelloMBean
+{
+ void setMessage( String message );
+
+ String getMessage();
+}



  • svn commit: r2081 - in development/laboratory/plus: standard/builder test/example/impl test/example/impl/src/main/net/dpml/test/hello/impl, mcconnell, 03/14/2005

Archive powered by MHonArc 2.6.24.

Top of Page