org.apache.openejb.config.typed
Class ActiveMQResourceAdapterBuilder

java.lang.Object
  extended by org.apache.openejb.config.sys.AbstractService
      extended by org.apache.openejb.config.sys.Resource
          extended by org.apache.openejb.config.typed.ActiveMQResourceAdapterBuilder
All Implemented Interfaces:
Service

public class ActiveMQResourceAdapterBuilder
extends Resource


Field Summary
 
Fields inherited from class org.apache.openejb.config.sys.Resource
jndi
 
Fields inherited from class org.apache.openejb.config.sys.AbstractService
className, constructor, factoryName, id, jar, properties, provider, type
 
Constructor Summary
ActiveMQResourceAdapterBuilder()
           
 
Method Summary
 String getBrokerXmlConfig()
           
 String getDataSource()
           
 Properties getProperties()
          Gets the value of the properties property.
 URI getServerUrl()
           
 Duration getStartupTimeout()
           
 ActiveMQResourceAdapterBuilder id(String id)
           
 void setBrokerXmlConfig(String brokerXmlConfig)
           
 void setDataSource(String dataSource)
           
 void setServerUrl(URI serverUrl)
           
 void setStartupTimeout(Duration startupTimeout)
           
 void setStartupTimeout(long time, TimeUnit unit)
           
 ActiveMQResourceAdapterBuilder withBrokerXmlConfig(String brokerXmlConfig)
           
 ActiveMQResourceAdapterBuilder withDataSource(String dataSource)
           
 ActiveMQResourceAdapterBuilder withServerUrl(URI serverUrl)
           
 ActiveMQResourceAdapterBuilder withStartupTimeout(Duration startupTimeout)
           
 ActiveMQResourceAdapterBuilder withStartupTimeout(long time, TimeUnit unit)
           
 
Methods inherited from class org.apache.openejb.config.sys.Resource
equals, getJndi, hashCode, setJndi
 
Methods inherited from class org.apache.openejb.config.sys.AbstractService
getClassName, getConstructor, getFactoryName, getId, getJar, getProvider, getType, setClassName, setConstructor, setFactoryName, setId, setJar, setProvider, setType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveMQResourceAdapterBuilder

public ActiveMQResourceAdapterBuilder()
Method Detail

id

public ActiveMQResourceAdapterBuilder id(String id)

withBrokerXmlConfig

public ActiveMQResourceAdapterBuilder withBrokerXmlConfig(String brokerXmlConfig)

setBrokerXmlConfig

public void setBrokerXmlConfig(String brokerXmlConfig)

getBrokerXmlConfig

public String getBrokerXmlConfig()

withServerUrl

public ActiveMQResourceAdapterBuilder withServerUrl(URI serverUrl)

setServerUrl

public void setServerUrl(URI serverUrl)

getServerUrl

public URI getServerUrl()

withDataSource

public ActiveMQResourceAdapterBuilder withDataSource(String dataSource)

setDataSource

public void setDataSource(String dataSource)

getDataSource

public String getDataSource()

withStartupTimeout

public ActiveMQResourceAdapterBuilder withStartupTimeout(Duration startupTimeout)

setStartupTimeout

public void setStartupTimeout(Duration startupTimeout)

getStartupTimeout

public Duration getStartupTimeout()

withStartupTimeout

public ActiveMQResourceAdapterBuilder withStartupTimeout(long time,
                                                         TimeUnit unit)

setStartupTimeout

public void setStartupTimeout(long time,
                              TimeUnit unit)

getProperties

public Properties getProperties()
Description copied from class: AbstractService
Gets the value of the properties property.

This accessor method returns a reference to the live Properties Object, not a snapshot. Therefore any modification you make to the returned Properties will be present inside the JAXB object. This is why there is not a set method for the properties property.

For example, to add a new value, do as follows:

    getProperties().setProperty(key, value);
 

Specified by:
getProperties in interface Service
Overrides:
getProperties in class AbstractService


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.