public void init( )
{
SubscriptionManagerRPDocument propsDoc = SubscriptionManagerRPDocument.Factory.newInstance( );
ResourcePropertySetMetaData propSetMetaData =
new XmlBeansResourcePropertySetMetaData( propsDoc.schemaType( ), READ_ONLY_PROP_NAMES );
ResourcePropertySet propSet = new XmlBeansResourcePropertySet( propsDoc, propSetMetaData );
setResourcePropertySet( propSet );
// wsrlw:ScheduledResourceTermination props
ResourceProperty prop =
propSet.get( ScheduledResourceTerminationPortType.PROP_QNAME_CURRENT_TIME );
CurrentTimeDocument currTimeDoc = CurrentTimeDocument.Factory.newInstance( );
currTimeDoc.setCurrentTime( getCurrentTime( ) );
prop.setCallback( new CurrentTimeCallback( ) );
prop.add( currTimeDoc );
prop = propSet.get( ScheduledResourceTerminationPortType.PROP_QNAME_TERMINATION_TIME );
TerminationTimeDocument termTimeDoc = TerminationTimeDocument.Factory.newInstance( );
termTimeDoc.setTerminationTime( getTerminationTime( ) );
prop.add( termTimeDoc );
// wsntw:SubscriptionManager props
prop = propSet.get( SubscriptionManagerPortType.PROP_QNAME_CONSUMER_REFERENCE );
prop.setCallback( new ConsumerReferenceResourcePropertyCallback( this ) );
prop = propSet.get( SubscriptionManagerPortType.PROP_QNAME_TOPIC_EXPRESSION );
prop.setCallback( new TopicExpressionResourcePropertyCallback( this ) );
prop = propSet.get( SubscriptionManagerPortType.PROP_QNAME_USE_NOTIFY );
prop.setCallback( new UseNotifyResourcePropertyCallback( this ) );
prop = propSet.get( SubscriptionManagerPortType.PROP_QNAME_PRECONDITION );
prop.setCallback( new PreconditionResourcePropertyCallback( this ) );
prop = propSet.get( SubscriptionManagerPortType.PROP_QNAME_SELECTOR );
prop.setCallback( new SelectorResourcePropertyCallback( this ) );
prop = propSet.get( SubscriptionManagerPortType.PROP_QNAME_SUBSCRIPTION_POLICY );
prop.setCallback( new SubscriptionPolicyResourcePropertyCallback( this ) );
prop = propSet.get( SubscriptionManagerPortType.PROP_QNAME_CREATION_TIME );
CreationTimeDocument creationTimeDoc = CreationTimeDocument.Factory.newInstance( );
creationTimeDoc.setCreationTime( getCreationTime( ) );
prop.add( creationTimeDoc );
// custom prop 'ProducerReference'
prop = propSet.get( SubscriptionManagerPortType.PROP_QNAME_PRODUCER_REFERENCE );
ProducerReferenceDocument producerRefDoc = ProducerReferenceDocument.Factory.newInstance( );
producerRefDoc.setProducerReference( (EndpointReferenceType) ( (XmlBeansEndpointReference) getProducerReference( ) )
.getXmlObject( AddressingConstants.NSURI_ADDRESSING_SCHEMA ) );
prop.add( producerRefDoc );
}