Author: ips
Date: Fri Jul 29 10:12:25 2005
New Revision: 226401
URL: http://svn.apache.org/viewcvs?rev=226401&view=rev
Log:
updates to work w/ changes to UUID generator and mechanism for initing producer
props
Removed:
webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeatherStationDirHome.java
Modified:
webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/AbstractApplicationResource.java
webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/ApplicationResource.java
webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/EventScheduler.java
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/AbstractBusinessprocesstypeResource.java
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeResource.java
webservices/muse/trunk/src/examples/enterprise/services/host/src/java/org/apache/ws/muse/example/host/AbstractHostResource.java
webservices/muse/trunk/src/examples/enterprise/services/host/src/java/org/apache/ws/muse/example/host/HostResource.java
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/AbstractIntegrationserverResource.java
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java
webservices/muse/trunk/src/examples/enterprise/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/AbstractResourceadminResource.java
webservices/muse/trunk/src/examples/enterprise/services/resourceadmin/src/java/org/apache/ws/muse/example/resourceadmin/ResourceadminResource.java
webservices/muse/trunk/src/examples/ieeedemo/client/src/org/apache/interop/wcmgr/WcMgrApp.java
webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigResource.java
webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigResource.java
webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationResource.java
webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationResource.java
webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeatherStationDirResource.java
webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirHome.java
webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirResource.java
webservices/muse/trunk/src/examples/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/AbstractIpmiserverResource.java
webservices/muse/trunk/src/examples/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/IpmiserverResource.java
webservices/muse/trunk/src/examples/interop/src/java/org/apache/ws/resource/example/blackberry/AbstractBlackberryResource.java
webservices/muse/trunk/src/examples/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java
webservices/muse/trunk/src/examples/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/AbstractWeatherstationResource.java
webservices/muse/trunk/src/examples/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java
webservices/muse/trunk/src/java/org/apache/ws/muws/v1_0/events/impl/XmlBeansManagementEvent.java
webservices/muse/trunk/src/java/org/apache/ws/muws/v1_0/impl/advertiser/AbstractResourceAdvertiserResource.java
webservices/muse/trunk/src/java/org/apache/ws/muws/v1_0/impl/advertiser/ResourceAdvertiserResource.java
Modified:
webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/AbstractApplicationResource.java
URL:
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/AbstractApplicationResource.java?rev=226401&r1=226400&r2=226401&view=diff
==============================================================================
---
webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/AbstractApplicationResource.java
(original)
+++
webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/AbstractApplicationResource.java
Fri Jul 29 10:12:25 2005
@@ -23,148 +23,167 @@
* NOTE: This class is generated and is NOT meant to be modified.
*/
public abstract class AbstractApplicationResource
- implements org.apache.ws.resource.PropertiesResource,
- org.apache.ws.notification.base.NotificationProducerResource
+ implements org.apache.ws.resource.PropertiesResource,
+ org.apache.ws.notification.base.NotificationProducerResource
{
- /**
- * The resource ID of the instance.
- */
- protected String m_id;
-
- /** The EndpointReference for this resource **/
- protected EndpointReference m_endpointReference;
-
- /**
- * The set of properties associated with this resource.
- */
- protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
-
- /**
- * A list of termination listeners to be notified when the resource is
terminated.
- */
- private java.util.List m_terminationListeners = new java.util.ArrayList( );
-
- /** DOCUMENT_ME */
- org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet =
- new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl( true );
-
- /**
- * Sets the EndpointReference associated with this Resource.
- *
- * @param epr The Resource's EndpointReference.
- *
- * Note: It is the responsibility of the Resource creator to set the
EndpointReference (i.e. ResourceHome impl)
- */
- public void setEndpointReference( EndpointReference epr )
- {
- m_endpointReference = epr;
- }
-
- /**
- * Returns the EndpointReference associated with this Resource.
- *
- * @return The Resource's EndpointReference or null if the
EndpointReference has not been set.
- *
- * Note: It is the responsibility of the Resource creator to set the
EndpointReference (i.e. ResourceHome impl)
- */
- public EndpointReference getEndpointReference( )
- {
- return m_endpointReference;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param id DOCUMENT_ME
- */
- public void setID( Object id )
- {
- if ( m_id != null )
- {
- throw new IllegalStateException( "This resource's ID has already been
set." );
- }
-
- try
- {
- m_id = (String) id;
- }
- catch ( ClassCastException cce )
- {
- throw new IllegalArgumentException( "Specified ID is not a String." );
- }
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public Object getID( )
- {
- return m_id;
- }
-
- /**
- * @see
org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
- */
- public void setResourcePropertySet(
org.apache.ws.resource.properties.ResourcePropertySet propSet )
- {
- m_propSet = propSet;
- }
-
- /**
- * @see org.apache.ws.resource.PropertiesResource#getResourcePropertySet()
- */
- public org.apache.ws.resource.properties.ResourcePropertySet
getResourcePropertySet( )
- {
- return m_propSet;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet( )
- {
- return m_topicSpaceSet;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param listener DOCUMENT_ME
- */
- public void addTerminationListener(
org.apache.ws.resource.lifetime.ResourceTerminationListener listener )
- {
- m_terminationListeners.add( listener );
- }
-
- /**
- * DOCUMENT_ME
- */
- public void destroy( )
- {
- org.apache.ws.resource.lifetime.ResourceTerminationEvent rte =
- new
org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl( getID( ),
"Resource Destroyed" );
- for ( int i = 0; i < m_terminationListeners.size( ); i++ )
- {
- org.apache.ws.resource.lifetime.ResourceTerminationListener
resourceTerminationEventListener =
- (org.apache.ws.resource.lifetime.ResourceTerminationListener)
m_terminationListeners.get( i );
- resourceTerminationEventListener.terminationOccurred( rte );
- }
-
- return;
- }
-
- /**
- * DOCUMENT_ME
- */
- public void init( )
- {
- org.apache.ws.muse.example.application.ApplicationPropertiesDocument
propsDoc =
-
org.apache.ws.muse.example.application.ApplicationPropertiesDocument.Factory.newInstance(
);
- m_propSet = new
org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
- org.apache.ws.muws.MuwsUtils.updateRelationshipResourceProperty(
m_propSet, this );
- }
+ /**
+ * The resource ID of the instance.
+ */
+ protected String m_id;
+
+ /**
+ * The EndpointReference for this resource *
+ */
+ protected EndpointReference m_endpointReference;
+
+ /**
+ * The set of properties associated with this resource.
+ */
+ protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
+
+ /**
+ * A list of termination listeners to be notified when the resource is
terminated.
+ */
+ private java.util.List m_terminationListeners = new java.util.ArrayList();
+
+ /**
+ * DOCUMENT_ME
+ */
+ org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet =
+ new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl( true
);
+
+ /**
+ * Sets the EndpointReference associated with this Resource.
+ *
+ * @param epr The Resource's EndpointReference.
+ * <p/>
+ * Note: It is the responsibility of the Resource creator to
set the EndpointReference (i.e. ResourceHome
+ * impl)
+ */
+ public void setEndpointReference( EndpointReference epr )
+ {
+ m_endpointReference = epr;
+ }
+
+ /**
+ * Returns the EndpointReference associated with this Resource.
+ *
+ * @return The Resource's EndpointReference or null if the
EndpointReference has not been set.
+ * <p/>
+ * Note: It is the responsibility of the Resource creator to set
the EndpointReference (i.e. ResourceHome
+ * impl)
+ */
+ public EndpointReference getEndpointReference()
+ {
+ return m_endpointReference;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param id DOCUMENT_ME
+ */
+ public void setID( Object id )
+ {
+ if ( m_id != null )
+ {
+ throw new IllegalStateException( "This resource's ID has already
been set." );
+ }
+
+ try
+ {
+ m_id = (String) id;
+ }
+ catch ( ClassCastException cce )
+ {
+ throw new IllegalArgumentException( "Specified ID is not a
String." );
+ }
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public Object getID()
+ {
+ return m_id;
+ }
+
+ /**
+ * @see
org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
+ */
+ public void setResourcePropertySet(
org.apache.ws.resource.properties.ResourcePropertySet propSet )
+ {
+ m_propSet = propSet;
+ }
+
+ /**
+ * @see org.apache.ws.resource.PropertiesResource#getResourcePropertySet()
+ */
+ public org.apache.ws.resource.properties.ResourcePropertySet
getResourcePropertySet()
+ {
+ return m_propSet;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet()
+ {
+ return m_topicSpaceSet;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param listener DOCUMENT_ME
+ */
+ public void addTerminationListener(
org.apache.ws.resource.lifetime.ResourceTerminationListener listener )
+ {
+ m_terminationListeners.add( listener );
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void destroy()
+ {
+ org.apache.ws.resource.lifetime.ResourceTerminationEvent rte =
+ new
org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl( getID(),
"Resource Destroyed" );
+ for ( int i = 0; i < m_terminationListeners.size(); i++ )
+ {
+ org.apache.ws.resource.lifetime.ResourceTerminationListener
resourceTerminationEventListener =
+
(org.apache.ws.resource.lifetime.ResourceTerminationListener)
m_terminationListeners.get( i );
+ resourceTerminationEventListener.terminationOccurred( rte );
+ }
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void init()
+ {
+ org.apache.ws.muse.example.application.ApplicationPropertiesDocument
propsDoc =
+
org.apache.ws.muse.example.application.ApplicationPropertiesDocument.Factory.newInstance();
+ m_propSet = new
org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
+
+ org.apache.ws.resource.properties.ResourceProperty topicProp =
getResourcePropertySet().get(
+
org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_TOPIC
);
+ topicProp.setCallback( new
org.apache.ws.notification.base.TopicResourcePropertyCallback(
getTopicSpaceSet() ) );
+
+ org.apache.ws.resource.properties.ResourceProperty fixedTopicSetProp =
getResourcePropertySet().get(
+
org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_FIXED_TOPIC_SET
);
+ fixedTopicSetProp.setCallback(
+ new
org.apache.ws.notification.base.FixedTopicSetResourcePropertyCallback(
getTopicSpaceSet() ) );
+
+ org.apache.ws.resource.properties.ResourceProperty
topicExpressionDialectsProp = getResourcePropertySet().get(
+
org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_TOPIC_EXPRESSION_DIALECTS
);
+ topicExpressionDialectsProp.setCallback(
+ new
org.apache.ws.notification.base.TopicExpressionDialectsResourcePropertyCallback()
);
+
+ org.apache.ws.muws.MuwsUtils.updateRelationshipResourceProperty(
m_propSet, this );
+ }
}
Modified:
webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/ApplicationResource.java
URL:
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/ApplicationResource.java?rev=226401&r1=226400&r2=226401&view=diff
==============================================================================
---
webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/ApplicationResource.java
(original)
+++
webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/ApplicationResource.java
Fri Jul 29 10:12:25 2005
@@ -363,22 +363,6 @@
// Resource Property
{http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}FixedTopicSet
is implemented by the framework.
// Resource Property
{http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}Topic
is implemented by the framework.
// Resource Property
{http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}TopicExpressionDialects
is implemented by the framework.
- /**
- * Initializes the Topic, TopicExpressionDialects and FixedTopicSet
resource properties
- * </br>
- * FixedTopicSet will be set based on the value returned from the [EMAIL
PROTECTED] TopicSpaceSet#isFixed()} method.
- * </br>
- * Topic will have all root topics in the TopicSpaceSet, set to Simple
dialect AND all child topics set to
- * Concrete dialect.
- * </br>
- *
- * TopicExpressionDialects will be set to the engine's known Topic
Dialects acquired from the TopicExpressionEngine
- *
- * If this is not the behavior you would like, you will need to remove
the following line of code and initialize the properties
- * individually.
- */
-
org.apache.ws.notification.topics.util.TopicUtils.initNotificationProducerProperties(
getTopicSpaceSet( ),
-
getResourcePropertySet( ) );
//m_eventScheduler.start(1, 60 );
}
Modified:
webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/EventScheduler.java
URL:
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/EventScheduler.java?rev=226401&r1=226400&r2=226401&view=diff
==============================================================================
---
webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/EventScheduler.java
(original)
+++
webservices/muse/trunk/src/examples/enterprise/services/application/src/java/org/apache/ws/muse/example/application/EventScheduler.java
Fri Jul 29 10:12:25 2005
@@ -17,6 +17,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.apache.commons.id.uuid.UUID;
+import org.apache.commons.id.IdentifierUtils;
import org.apache.ws.mows.v1_0.capability.OperationalStatusCapability;
import org.apache.ws.muws.impl.CategoryImpl;
import org.apache.ws.muws.v1_0.MuwsConstants;
@@ -31,8 +33,6 @@
import org.apache.ws.notification.topics.TopicSpaceSet;
import org.apache.ws.resource.properties.ResourceProperty;
import org.apache.ws.resource.properties.ResourcePropertySet;
-import org.apache.ws.util.uuid.UuidGenerator;
-import org.apache.ws.util.uuid.UuidGeneratorFactory;
import org.apache.xmlbeans.XmlObject;
import org.apache.xmlbeans.impl.values.XmlAnyUriImpl;
import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.LangString;
@@ -56,11 +56,6 @@
{
private static final Log LOG = LogFactory.getLog(
EventScheduler.class.getName( ) );
- /** CorrelationId generator
- *
- */
- protected static final UuidGenerator UUID_GEN =
UuidGeneratorFactory.createUUIdGenerator( );
-
/* The timer */
private Timer m_timer;
@@ -78,7 +73,7 @@
/** The constructor used when the default delay and frequency are acceptable
*
- * @param NotificationProducerResource resource
+ * @param resource
* @throws Exception
*/
public EventScheduler( NotificationProducerResource resource )
@@ -94,8 +89,8 @@
/** The constructor used when the default delay and frequency are acceptable
*
- * @param int minutesDelay
- * @param int secondsFrequency
+ * @param minutesDelay
+ * @param secondsFrequency
* @param resource
* @throws Exception
*/
@@ -233,7 +228,7 @@
/** The management event is composed. The custom CorrelationId is added
to the spec defined managementEvent
*
- * @param boolean firstEvent true - low disk space event, false - disk
space OK
+ * @param firstEvent true - low disk space event, false - disk space OK
*/
void buildAndPublishEvent( boolean firstEvent )
{
@@ -256,7 +251,7 @@
aSituation.setSeverity( (short) 4 );
lStringC.setStringValue( "Available disk space is too low" );
aSituation.setSuccessDisposition( Boolean.FALSE );
- m_correlationId = UUID_GEN.generateUuid( );
+ m_correlationId = ((UUID)
IdentifierUtils.UUID_VERSION_FOUR_GENERATOR.nextIdentifier()).toString();
}
else
{
Modified:
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/AbstractBusinessprocesstypeResource.java
URL:
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/AbstractBusinessprocesstypeResource.java?rev=226401&r1=226400&r2=226401&view=diff
==============================================================================
---
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/AbstractBusinessprocesstypeResource.java
(original)
+++
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/AbstractBusinessprocesstypeResource.java
Fri Jul 29 10:12:25 2005
@@ -23,148 +23,167 @@
* NOTE: This class is generated and is NOT meant to be modified.
*/
public abstract class AbstractBusinessprocesstypeResource
- implements org.apache.ws.resource.PropertiesResource,
- org.apache.ws.notification.base.NotificationProducerResource
+ implements org.apache.ws.resource.PropertiesResource,
+ org.apache.ws.notification.base.NotificationProducerResource
{
- /**
- * The resource ID of the instance.
- */
- protected String m_id;
-
- /** The EndpointReference for this resource **/
- protected EndpointReference m_endpointReference;
-
- /**
- * The set of properties associated with this resource.
- */
- protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
-
- /**
- * A list of termination listeners to be notified when the resource is
terminated.
- */
- private java.util.List m_terminationListeners = new java.util.ArrayList( );
-
- /** DOCUMENT_ME */
- org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet =
- new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl( true );
-
- /**
- * Sets the EndpointReference associated with this Resource.
- *
- * @param epr The Resource's EndpointReference.
- *
- * Note: It is the responsibility of the Resource creator to set the
EndpointReference (i.e. ResourceHome impl)
- */
- public void setEndpointReference( EndpointReference epr )
- {
- m_endpointReference = epr;
- }
-
- /**
- * Returns the EndpointReference associated with this Resource.
- *
- * @return The Resource's EndpointReference or null if the
EndpointReference has not been set.
- *
- * Note: It is the responsibility of the Resource creator to set the
EndpointReference (i.e. ResourceHome impl)
- */
- public EndpointReference getEndpointReference( )
- {
- return m_endpointReference;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param id DOCUMENT_ME
- */
- public void setID( Object id )
- {
- if ( m_id != null )
- {
- throw new IllegalStateException( "This resource's ID has already been
set." );
- }
-
- try
- {
- m_id = (String) id;
- }
- catch ( ClassCastException cce )
- {
- throw new IllegalArgumentException( "Specified ID is not a String." );
- }
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public Object getID( )
- {
- return m_id;
- }
-
- /**
- * @see
org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
- */
- public void setResourcePropertySet(
org.apache.ws.resource.properties.ResourcePropertySet propSet )
- {
- m_propSet = propSet;
- }
-
- /**
- * @see org.apache.ws.resource.PropertiesResource#getResourcePropertySet()
- */
- public org.apache.ws.resource.properties.ResourcePropertySet
getResourcePropertySet( )
- {
- return m_propSet;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet( )
- {
- return m_topicSpaceSet;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param listener DOCUMENT_ME
- */
- public void addTerminationListener(
org.apache.ws.resource.lifetime.ResourceTerminationListener listener )
- {
- m_terminationListeners.add( listener );
- }
-
- /**
- * DOCUMENT_ME
- */
- public void destroy( )
- {
- org.apache.ws.resource.lifetime.ResourceTerminationEvent rte =
- new
org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl( getID( ),
"Resource Destroyed" );
- for ( int i = 0; i < m_terminationListeners.size( ); i++ )
- {
- org.apache.ws.resource.lifetime.ResourceTerminationListener
resourceTerminationEventListener =
- (org.apache.ws.resource.lifetime.ResourceTerminationListener)
m_terminationListeners.get( i );
- resourceTerminationEventListener.terminationOccurred( rte );
- }
-
- return;
- }
-
- /**
- * DOCUMENT_ME
- */
- public void init( )
- {
-
org.apache.ws.muse.example.businessprocesstype.BusinessProcessTypePropertiesDocument
propsDoc =
-
org.apache.ws.muse.example.businessprocesstype.BusinessProcessTypePropertiesDocument.Factory.newInstance(
);
- m_propSet = new
org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
- org.apache.ws.muws.MuwsUtils.updateRelationshipResourceProperty(
m_propSet, this );
- }
+ /**
+ * The resource ID of the instance.
+ */
+ protected String m_id;
+
+ /**
+ * The EndpointReference for this resource *
+ */
+ protected EndpointReference m_endpointReference;
+
+ /**
+ * The set of properties associated with this resource.
+ */
+ protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
+
+ /**
+ * A list of termination listeners to be notified when the resource is
terminated.
+ */
+ private java.util.List m_terminationListeners = new java.util.ArrayList();
+
+ /**
+ * DOCUMENT_ME
+ */
+ org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet =
+ new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl( true
);
+
+ /**
+ * Sets the EndpointReference associated with this Resource.
+ *
+ * @param epr The Resource's EndpointReference.
+ * <p/>
+ * Note: It is the responsibility of the Resource creator to
set the EndpointReference (i.e. ResourceHome
+ * impl)
+ */
+ public void setEndpointReference( EndpointReference epr )
+ {
+ m_endpointReference = epr;
+ }
+
+ /**
+ * Returns the EndpointReference associated with this Resource.
+ *
+ * @return The Resource's EndpointReference or null if the
EndpointReference has not been set.
+ * <p/>
+ * Note: It is the responsibility of the Resource creator to set
the EndpointReference (i.e. ResourceHome
+ * impl)
+ */
+ public EndpointReference getEndpointReference()
+ {
+ return m_endpointReference;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param id DOCUMENT_ME
+ */
+ public void setID( Object id )
+ {
+ if ( m_id != null )
+ {
+ throw new IllegalStateException( "This resource's ID has already
been set." );
+ }
+
+ try
+ {
+ m_id = (String) id;
+ }
+ catch ( ClassCastException cce )
+ {
+ throw new IllegalArgumentException( "Specified ID is not a
String." );
+ }
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public Object getID()
+ {
+ return m_id;
+ }
+
+ /**
+ * @see
org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
+ */
+ public void setResourcePropertySet(
org.apache.ws.resource.properties.ResourcePropertySet propSet )
+ {
+ m_propSet = propSet;
+ }
+
+ /**
+ * @see org.apache.ws.resource.PropertiesResource#getResourcePropertySet()
+ */
+ public org.apache.ws.resource.properties.ResourcePropertySet
getResourcePropertySet()
+ {
+ return m_propSet;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet()
+ {
+ return m_topicSpaceSet;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param listener DOCUMENT_ME
+ */
+ public void addTerminationListener(
org.apache.ws.resource.lifetime.ResourceTerminationListener listener )
+ {
+ m_terminationListeners.add( listener );
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void destroy()
+ {
+ org.apache.ws.resource.lifetime.ResourceTerminationEvent rte =
+ new
org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl( getID(),
"Resource Destroyed" );
+ for ( int i = 0; i < m_terminationListeners.size(); i++ )
+ {
+ org.apache.ws.resource.lifetime.ResourceTerminationListener
resourceTerminationEventListener =
+
(org.apache.ws.resource.lifetime.ResourceTerminationListener)
m_terminationListeners.get( i );
+ resourceTerminationEventListener.terminationOccurred( rte );
+ }
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void init()
+ {
+
org.apache.ws.muse.example.businessprocesstype.BusinessProcessTypePropertiesDocument
propsDoc =
+
org.apache.ws.muse.example.businessprocesstype.BusinessProcessTypePropertiesDocument.Factory.newInstance();
+ m_propSet = new
org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
+
+ org.apache.ws.resource.properties.ResourceProperty topicProp =
getResourcePropertySet().get(
+
org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_TOPIC
);
+ topicProp.setCallback( new
org.apache.ws.notification.base.TopicResourcePropertyCallback(
getTopicSpaceSet() ) );
+
+ org.apache.ws.resource.properties.ResourceProperty fixedTopicSetProp =
getResourcePropertySet().get(
+
org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_FIXED_TOPIC_SET
);
+ fixedTopicSetProp.setCallback(
+ new
org.apache.ws.notification.base.FixedTopicSetResourcePropertyCallback(
getTopicSpaceSet() ) );
+
+ org.apache.ws.resource.properties.ResourceProperty
topicExpressionDialectsProp = getResourcePropertySet().get(
+
org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_TOPIC_EXPRESSION_DIALECTS
);
+ topicExpressionDialectsProp.setCallback(
+ new
org.apache.ws.notification.base.TopicExpressionDialectsResourcePropertyCallback()
);
+
+ org.apache.ws.muws.MuwsUtils.updateRelationshipResourceProperty(
m_propSet, this );
+ }
}
Modified:
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeResource.java
URL:
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeResource.java?rev=226401&r1=226400&r2=226401&view=diff
==============================================================================
---
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeResource.java
(original)
+++
webservices/muse/trunk/src/examples/enterprise/services/businessprocesstype/src/java/org/apache/ws/muse/example/businessprocesstype/BusinessprocesstypeResource.java
Fri Jul 29 10:12:25 2005
@@ -377,22 +377,7 @@
// Resource Property
{http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}FixedTopicSet
is implemented by the framework.
// Resource Property
{http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}Topic
is implemented by the framework.
// Resource Property
{http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}TopicExpressionDialects
is implemented by the framework.
- /**
- * Initializes the Topic, TopicExpressionDialects and FixedTopicSet
resource properties
- * </br>
- * FixedTopicSet will be set based on the value returned from the [EMAIL
PROTECTED] TopicSpaceSet#isFixed()} method.
- * </br>
- * Topic will have all root topics in the TopicSpaceSet, set to Simple
dialect AND all child topics set to
- * Concrete dialect.
- * </br>
- *
- * TopicExpressionDialects will be set to the engine's known Topic
Dialects acquired from the TopicExpressionEngine
- *
- * If this is not the behavior you would like, you will need to remove
the following line of code and initialize the properties
- * individually.
- */
-
org.apache.ws.notification.topics.util.TopicUtils.initNotificationProducerProperties(
getTopicSpaceSet( ),
-
getResourcePropertySet( ) );
+
}
/**
Modified:
webservices/muse/trunk/src/examples/enterprise/services/host/src/java/org/apache/ws/muse/example/host/AbstractHostResource.java
URL:
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/host/src/java/org/apache/ws/muse/example/host/AbstractHostResource.java?rev=226401&r1=226400&r2=226401&view=diff
==============================================================================
---
webservices/muse/trunk/src/examples/enterprise/services/host/src/java/org/apache/ws/muse/example/host/AbstractHostResource.java
(original)
+++
webservices/muse/trunk/src/examples/enterprise/services/host/src/java/org/apache/ws/muse/example/host/AbstractHostResource.java
Fri Jul 29 10:12:25 2005
@@ -23,147 +23,166 @@
* NOTE: This class is generated and is NOT meant to be modified.
*/
public abstract class AbstractHostResource
- implements org.apache.ws.resource.PropertiesResource,
- org.apache.ws.notification.base.NotificationProducerResource
+ implements org.apache.ws.resource.PropertiesResource,
+ org.apache.ws.notification.base.NotificationProducerResource
{
- /**
- * The resource ID of the instance.
- */
- protected String m_id;
-
- /** The EndpointReference for this resource **/
- protected EndpointReference m_endpointReference;
-
- /**
- * The set of properties associated with this resource.
- */
- protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
-
- /**
- * A list of termination listeners to be notified when the resource is
terminated.
- */
- private java.util.List m_terminationListeners = new java.util.ArrayList( );
-
- /** DOCUMENT_ME */
- org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet =
- new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl( true );
-
- /**
- * Sets the EndpointReference associated with this Resource.
- *
- * @param epr The Resource's EndpointReference.
- *
- * Note: It is the responsibility of the Resource creator to set the
EndpointReference (i.e. ResourceHome impl)
- */
- public void setEndpointReference( EndpointReference epr )
- {
- m_endpointReference = epr;
- }
-
- /**
- * Returns the EndpointReference associated with this Resource.
- *
- * @return The Resource's EndpointReference or null if the
EndpointReference has not been set.
- *
- * Note: It is the responsibility of the Resource creator to set the
EndpointReference (i.e. ResourceHome impl)
- */
- public EndpointReference getEndpointReference( )
- {
- return m_endpointReference;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param id DOCUMENT_ME
- */
- public void setID( Object id )
- {
- if ( m_id != null )
- {
- throw new IllegalStateException( "This resource's ID has already been
set." );
- }
-
- try
- {
- m_id = (String) id;
- }
- catch ( ClassCastException cce )
- {
- throw new IllegalArgumentException( "Specified ID is not a String." );
- }
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public Object getID( )
- {
- return m_id;
- }
-
- /**
- * @see
org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
- */
- public void setResourcePropertySet(
org.apache.ws.resource.properties.ResourcePropertySet propSet )
- {
- m_propSet = propSet;
- }
-
- /**
- * @see org.apache.ws.resource.PropertiesResource#getResourcePropertySet()
- */
- public org.apache.ws.resource.properties.ResourcePropertySet
getResourcePropertySet( )
- {
- return m_propSet;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @return DOCUMENT_ME
- */
- public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet( )
- {
- return m_topicSpaceSet;
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param listener DOCUMENT_ME
- */
- public void addTerminationListener(
org.apache.ws.resource.lifetime.ResourceTerminationListener listener )
- {
- m_terminationListeners.add( listener );
- }
-
- /**
- * DOCUMENT_ME
- */
- public void destroy( )
- {
- org.apache.ws.resource.lifetime.ResourceTerminationEvent rte =
- new
org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl( getID( ),
"Resource Destroyed" );
- for ( int i = 0; i < m_terminationListeners.size( ); i++ )
- {
- org.apache.ws.resource.lifetime.ResourceTerminationListener
resourceTerminationEventListener =
- (org.apache.ws.resource.lifetime.ResourceTerminationListener)
m_terminationListeners.get( i );
- resourceTerminationEventListener.terminationOccurred( rte );
- }
-
- return;
- }
-
- /**
- * DOCUMENT_ME
- */
- public void init( )
- {
- org.apache.ws.muse.example.host.HostPropertiesDocument propsDoc =
-
org.apache.ws.muse.example.host.HostPropertiesDocument.Factory.newInstance( );
- m_propSet = new
org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
- }
-}
\ No newline at end of file
+ /**
+ * The resource ID of the instance.
+ */
+ protected String m_id;
+
+ /**
+ * The EndpointReference for this resource *
+ */
+ protected EndpointReference m_endpointReference;
+
+ /**
+ * The set of properties associated with this resource.
+ */
+ protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
+
+ /**
+ * A list of termination listeners to be notified when the resource is
terminated.
+ */
+ private java.util.List m_terminationListeners = new java.util.ArrayList();
+
+ /**
+ * DOCUMENT_ME
+ */
+ org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet =
+ new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl( true
);
+
+ /**
+ * Sets the EndpointReference associated with this Resource.
+ *
+ * @param epr The Resource's EndpointReference.
+ * <p/>
+ * Note: It is the responsibility of the Resource creator to
set the EndpointReference (i.e. ResourceHome
+ * impl)
+ */
+ public void setEndpointReference( EndpointReference epr )
+ {
+ m_endpointReference = epr;
+ }
+
+ /**
+ * Returns the EndpointReference associated with this Resource.
+ *
+ * @return The Resource's EndpointReference or null if the
EndpointReference has not been set.
+ * <p/>
+ * Note: It is the responsibility of the Resource creator to set
the EndpointReference (i.e. ResourceHome
+ * impl)
+ */
+ public EndpointReference getEndpointReference()
+ {
+ return m_endpointReference;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param id DOCUMENT_ME
+ */
+ public void setID( Object id )
+ {
+ if ( m_id != null )
+ {
+ throw new IllegalStateException( "This resource's ID has already
been set." );
+ }
+
+ try
+ {
+ m_id = (String) id;
+ }
+ catch ( ClassCastException cce )
+ {
+ throw new IllegalArgumentException( "Specified ID is not a
String." );
+ }
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public Object getID()
+ {
+ return m_id;
+ }
+
+ /**
+ * @see
org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
+ */
+ public void setResourcePropertySet(
org.apache.ws.resource.properties.ResourcePropertySet propSet )
+ {
+ m_propSet = propSet;
+ }
+
+ /**
+ * @see org.apache.ws.resource.PropertiesResource#getResourcePropertySet()
+ */
+ public org.apache.ws.resource.properties.ResourcePropertySet
getResourcePropertySet()
+ {
+ return m_propSet;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet()
+ {
+ return m_topicSpaceSet;
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param listener DOCUMENT_ME
+ */
+ public void addTerminationListener(
org.apache.ws.resource.lifetime.ResourceTerminationListener listener )
+ {
+ m_terminationListeners.add( listener );
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void destroy()
+ {
+ org.apache.ws.resource.lifetime.ResourceTerminationEvent rte =
+ new
org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl( getID(),
"Resource Destroyed" );
+ for ( int i = 0; i < m_terminationListeners.size(); i++ )
+ {
+ org.apache.ws.resource.lifetime.ResourceTerminationListener
resourceTerminationEventListener =
+
(org.apache.ws.resource.lifetime.ResourceTerminationListener)
m_terminationListeners.get( i );
+ resourceTerminationEventListener.terminationOccurred( rte );
+ }
+ }
+
+ /**
+ * DOCUMENT_ME
+ */
+ public void init()
+ {
+ org.apache.ws.muse.example.host.HostPropertiesDocument propsDoc =
+
org.apache.ws.muse.example.host.HostPropertiesDocument.Factory.newInstance();
+ m_propSet = new
org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
+
+ org.apache.ws.resource.properties.ResourceProperty topicProp =
getResourcePropertySet().get(
+
org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_TOPIC
);
+ topicProp.setCallback( new
org.apache.ws.notification.base.TopicResourcePropertyCallback(
getTopicSpaceSet() ) );
+
+ org.apache.ws.resource.properties.ResourceProperty fixedTopicSetProp =
getResourcePropertySet().get(
+
org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_FIXED_TOPIC_SET
);
+ fixedTopicSetProp.setCallback(
+ new
org.apache.ws.notification.base.FixedTopicSetResourcePropertyCallback(
getTopicSpaceSet() ) );
+
+ org.apache.ws.resource.properties.ResourceProperty
topicExpressionDialectsProp = getResourcePropertySet().get(
+
org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_TOPIC_EXPRESSION_DIALECTS
);
+ topicExpressionDialectsProp.setCallback(
+ new
org.apache.ws.notification.base.TopicExpressionDialectsResourcePropertyCallback()
);
+ }
+
+}
Modified:
webservices/muse/trunk/src/examples/enterprise/services/host/src/java/org/apache/ws/muse/example/host/HostResource.java
URL:
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/host/src/java/org/apache/ws/muse/example/host/HostResource.java?rev=226401&r1=226400&r2=226401&view=diff
==============================================================================
---
webservices/muse/trunk/src/examples/enterprise/services/host/src/java/org/apache/ws/muse/example/host/HostResource.java
(original)
+++
webservices/muse/trunk/src/examples/enterprise/services/host/src/java/org/apache/ws/muse/example/host/HostResource.java
Fri Jul 29 10:12:25 2005
@@ -267,21 +267,6 @@
// Resource Property
{http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}FixedTopicSet
is implemented by the framework.
// Resource Property
{http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}Topic
is implemented by the framework.
// Resource Property
{http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}TopicExpressionDialects
is implemented by the framework.
- /**
- * Initializes the Topic, TopicExpressionDialects and FixedTopicSet
resource properties
- * </br>
- * FixedTopicSet will be set based on the value returned from the [EMAIL
PROTECTED] TopicSpaceSet#isFixed()} method.
- * </br>
- * Topic will have all root topics in the TopicSpaceSet, set to Simple
dialect AND all child topics set to
- * Concrete dialect.
- * </br>
- *
- * TopicExpressionDialects will be set to the engine's known Topic
Dialects acquired from the TopicExpressionEngine
- *
- * If this is not the behavior you would like, you will need to remove
the following line of code and initialize the properties
- * individually.
- */
-
org.apache.ws.notification.topics.util.TopicUtils.initNotificationProducerProperties(
getTopicSpaceSet( ),
-
getResourcePropertySet( ) );
+
}
}
Modified:
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/AbstractIntegrationserverResource.java
URL:
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/AbstractIntegrationserverResource.java?rev=226401&r1=226400&r2=226401&view=diff
==============================================================================
---
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/AbstractIntegrationserverResource.java
(original)
+++
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/AbstractIntegrationserverResource.java
Fri Jul 29 10:12:25 2005
@@ -1,4 +1,3 @@
-
package org.apache.ws.muse.example.integrationserver;
import org.apache.ws.addressing.EndpointReference;
@@ -6,30 +5,32 @@
/**
* An abstract Integrationserver WS-Resource.
* <p/>
- * NOTE: This class is generated and is NOT meant to be modified.
+ * NOTE: This class is generated and is NOT meant to be modified.
*/
-public abstract class AbstractIntegrationserverResource implements
org.apache.ws.resource.PropertiesResource,
org.apache.ws.notification.base.NotificationProducerResource {
-
+public abstract class AbstractIntegrationserverResource implements
org.apache.ws.resource.PropertiesResource,
+ org.apache.ws.notification.base.NotificationProducerResource
+{
+
/**
* The resource ID of the instance.
*/
protected String m_id;
-
- /** The EndpointReference for this resource **/
+
+ /**
+ * The EndpointReference for this resource *
+ */
protected EndpointReference m_endpointReference;
- /**
+ /**
* The set of properties associated with this resource.
*/
protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
-
-
+
/**
* A list of termination listeners to be notified when the resource is
terminated.
*/
- private java.util.List m_terminationListeners = new java.util.ArrayList();
-
-
+ private java.util.List m_terminationListeners = new java.util.ArrayList();
+
/**
* DOCUMENT_ME
*
@@ -57,9 +58,9 @@
*
* @param listener DOCUMENT_ME
*/
- public void addTerminationListener(
org.apache.ws.resource.lifetime.ResourceTerminationListener listener)
- {
- m_terminationListeners.add(listener);
+ public void addTerminationListener(
org.apache.ws.resource.lifetime.ResourceTerminationListener listener )
+ {
+ m_terminationListeners.add( listener );
}
/**
@@ -74,49 +75,64 @@
public void destroy()
{
- org.apache.ws.resource.lifetime.ResourceTerminationEvent rte = new
org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl(getID(),"Resource
Destroyed");
- for (int i = 0; i < m_terminationListeners.size(); i++)
- {
- org.apache.ws.resource.lifetime.ResourceTerminationListener
resourceTerminationEventListener =
(org.apache.ws.resource.lifetime.ResourceTerminationListener)
m_terminationListeners.get(i);
- resourceTerminationEventListener.terminationOccurred(rte);
- }
- return;
+ org.apache.ws.resource.lifetime.ResourceTerminationEvent rte = new
org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl(
+ getID(), "Resource Destroyed" );
+ for ( int i = 0; i < m_terminationListeners.size(); i++ )
+ {
+ org.apache.ws.resource.lifetime.ResourceTerminationListener
resourceTerminationEventListener =
(org.apache.ws.resource.lifetime.ResourceTerminationListener)
m_terminationListeners.get(
+ i );
+ resourceTerminationEventListener.terminationOccurred( rte );
+ }
}
public void init()
{
-
+
org.apache.ws.muse.example.integrationserver.IntegrationServerPropertiesDocument
propsDoc =
org.apache.ws.muse.example.integrationserver.IntegrationServerPropertiesDocument.Factory.newInstance();
m_propSet = new
org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
-
org.apache.ws.muws.MuwsUtils.updateRelationshipResourceProperty(m_propSet,
this);
-
-
- }
-
- /**
- * Returns the EndpointReference associated with this Resource.
- *
- * @return The Resource's EndpointReference or null if the
EndpointReference has not been set.
- *
- * Note: It is the responsibility of the Resource creator to set the
EndpointReference (i.e. ResourceHome impl)
- */
+
+ org.apache.ws.resource.properties.ResourceProperty topicProp =
getResourcePropertySet().get(
+
org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_TOPIC
);
+ topicProp.setCallback( new
org.apache.ws.notification.base.TopicResourcePropertyCallback(
getTopicSpaceSet() ) );
+
+ org.apache.ws.resource.properties.ResourceProperty fixedTopicSetProp =
getResourcePropertySet().get(
+
org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_FIXED_TOPIC_SET
);
+ fixedTopicSetProp.setCallback(
+ new
org.apache.ws.notification.base.FixedTopicSetResourcePropertyCallback(
getTopicSpaceSet() ) );
+
+ org.apache.ws.resource.properties.ResourceProperty
topicExpressionDialectsProp = getResourcePropertySet().get(
+
org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType.PROP_QNAME_TOPIC_EXPRESSION_DIALECTS
);
+ topicExpressionDialectsProp.setCallback(
+ new
org.apache.ws.notification.base.TopicExpressionDialectsResourcePropertyCallback()
);
+
+ org.apache.ws.muws.MuwsUtils.updateRelationshipResourceProperty(
m_propSet, this );
+ }
+
+ /**
+ * Returns the EndpointReference associated with this Resource.
+ *
+ * @return The Resource's EndpointReference or null if the
EndpointReference has not been set.
+ * <p/>
+ * Note: It is the responsibility of the Resource creator to set
the EndpointReference (i.e. ResourceHome
+ * impl)
+ */
public EndpointReference getEndpointReference()
{
- return m_endpointReference;
+ return m_endpointReference;
}
-
- /**
- * Sets the EndpointReference associated with this Resource.
- *
- * @param epr The Resource's EndpointReference.
- *
- * Note: It is the responsibility of the Resource creator to set the
EndpointReference (i.e. ResourceHome impl)
- */
- public void setEndpointReference(EndpointReference epr)
+
+ /**
+ * Sets the EndpointReference associated with this Resource.
+ *
+ * @param epr The Resource's EndpointReference.
+ * <p/>
+ * Note: It is the responsibility of the Resource creator to
set the EndpointReference (i.e. ResourceHome
+ * impl)
+ */
+ public void setEndpointReference( EndpointReference epr )
{
- m_endpointReference = epr;
+ m_endpointReference = epr;
}
-
/**
* @see
org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
@@ -132,12 +148,14 @@
public org.apache.ws.resource.properties.ResourcePropertySet
getResourcePropertySet()
{
return m_propSet;
- }
- org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet = new
org.apache.ws.notification.topics.impl.TopicSpaceSetImpl(true);
-
- public org.apache.ws.notification.topics.TopicSpaceSet
getTopicSpaceSet()
- {
- return m_topicSpaceSet;
- }
-
+ }
+
+ org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet = new
org.apache.ws.notification.topics.impl.TopicSpaceSetImpl(
+ true );
+
+ public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet()
+ {
+ return m_topicSpaceSet;
+ }
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]