org.modelbus.core.lib.configuration
Class ModelBusServiceConfiguration

java.lang.Object
  extended by org.modelbus.core.lib.configuration.ModelBusServiceConfiguration

public class ModelBusServiceConfiguration
extends java.lang.Object


Field Summary
static java.lang.String DATABINDING_JAXB
          Value for jaxb databinding.
static java.lang.String DATABINDING_SIMPLE
          Value for "simple" databinding.
static java.lang.Integer DEFAULT_SERVICE_PORT
          The default port to use when both the OPTION_OSGI_HTTP_SERVICE_CONTEXT and the OPTION_OSGI_HTTP_SERVICE_CONTEXT are not set.
static java.lang.String FRONTEND_JAXWS
          Value for jaxws frontend.
static java.lang.String FRONTEND_SIMPLE
          Value for "simple" frontend.
static java.lang.String OPTION_DATABINDING
          Defines the databinding to use for the service.
static java.lang.String OPTION_EFFECTIVE_SERVICE_ADDRESS
          The URL the service has been deployed to.
static java.lang.String OPTION_ENABLE_MTOM
          Enables the MTOM transmission feature for the service.
static java.lang.String OPTION_FRONTEND
          Defines the frontend used for the service.
static java.lang.String OPTION_OSGI_HTTP_SERVICE_CONTEXT
          Defines the context to use to deploy the service to an existent OSGi HTTPService within the OSGi container.
static java.lang.String OPTION_SERVICE_ADDRESS
          Defines the service address to use to deploy the service to.
 
Constructor Summary
ModelBusServiceConfiguration()
           
ModelBusServiceConfiguration(java.lang.String serviceInterface)
           
 
Method Summary
static ModelBusServiceConfiguration get(java.lang.Class serviceInterface)
           
 java.lang.Object getOption(java.lang.String key)
           
 java.util.Map<java.lang.String,java.lang.Object> getOptions()
           
 java.lang.String getServiceInterface()
           
 java.lang.String getServiceName()
           
 boolean isOptionSet(java.lang.String key)
           
static void register(ModelBusServiceConfiguration config)
           
 void setOption(java.lang.String key, java.lang.Object value)
           
 void setServiceInterface(java.lang.String serviceInterface)
           
 void setServiceName(java.lang.String serviceName)
           
 void unsetOption(java.lang.String key)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_ENABLE_MTOM

public static final java.lang.String OPTION_ENABLE_MTOM
Enables the MTOM transmission feature for the service.

See Also:
Constant Field Values

OPTION_SERVICE_ADDRESS

public static final java.lang.String OPTION_SERVICE_ADDRESS
Defines the service address to use to deploy the service to.
This will startup a new external Jetty server instance at the port specified in the address.
This option will override the OPTION_OSGI_HTTP_SERVICE_CONTEXT option.
The default port is 9090. The default address for the service will be generated from the simple class name of the service interface used in lowercase (e.g. http://localhost:9090/myservice for an interface named MyService.class).

See Also:
Constant Field Values

OPTION_EFFECTIVE_SERVICE_ADDRESS

public static final java.lang.String OPTION_EFFECTIVE_SERVICE_ADDRESS
The URL the service has been deployed to. This option will be set by the framework.
In case of using the OPTION_OSGI_HTTP_SERVICE_CONTEXT option, the value of this option will be derived from the address of the embedded HTTP service used for the service and the specified service context.
In case of using the OPTION_SERVICE_ADDRESS option, the value of this option will be identical to the OPTION_SERVICE_ADDRESS option value.

See Also:
Constant Field Values

OPTION_FRONTEND

public static final java.lang.String OPTION_FRONTEND
Defines the frontend used for the service. Possible values are simple and jaxws.
The default values is jaxws.

See Also:
Constant Field Values

OPTION_DATABINDING

public static final java.lang.String OPTION_DATABINDING
Defines the databinding to use for the service. Possible values are jaxb and simple.
The default values is simple.

See Also:
Constant Field Values

OPTION_OSGI_HTTP_SERVICE_CONTEXT

public static final java.lang.String OPTION_OSGI_HTTP_SERVICE_CONTEXT
Defines the context to use to deploy the service to an existent OSGi HTTPService within the OSGi container.
This option will be ignored when the OPTION_SERVICE_ADDRESS option is set.

See Also:
Constant Field Values

DEFAULT_SERVICE_PORT

public static final java.lang.Integer DEFAULT_SERVICE_PORT
The default port to use when both the OPTION_OSGI_HTTP_SERVICE_CONTEXT and the OPTION_OSGI_HTTP_SERVICE_CONTEXT are not set.
See option OPTION_SERVICE_ADDRESS


FRONTEND_SIMPLE

public static final java.lang.String FRONTEND_SIMPLE
Value for "simple" frontend. See http://cxf.apache.org/docs/simple-frontend-configuration.html for more information.

See Also:
Constant Field Values

FRONTEND_JAXWS

public static final java.lang.String FRONTEND_JAXWS
Value for jaxws frontend.

See Also:
Constant Field Values

DATABINDING_JAXB

public static final java.lang.String DATABINDING_JAXB
Value for jaxb databinding.

See Also:
Constant Field Values

DATABINDING_SIMPLE

public static final java.lang.String DATABINDING_SIMPLE
Value for "simple" databinding. See http://cxf.apache.org/docs/aegis-databinding-20x.html

See Also:
Constant Field Values
Constructor Detail

ModelBusServiceConfiguration

public ModelBusServiceConfiguration()

ModelBusServiceConfiguration

public ModelBusServiceConfiguration(java.lang.String serviceInterface)
Method Detail

setOption

public void setOption(java.lang.String key,
                      java.lang.Object value)

unsetOption

public void unsetOption(java.lang.String key)

isOptionSet

public boolean isOptionSet(java.lang.String key)

getOption

public java.lang.Object getOption(java.lang.String key)

getOptions

public java.util.Map<java.lang.String,java.lang.Object> getOptions()

validate

public void validate()
              throws ModelBusServiceException
Throws:
ModelBusServiceException

getServiceInterface

public java.lang.String getServiceInterface()

setServiceInterface

public void setServiceInterface(java.lang.String serviceInterface)

register

public static void register(ModelBusServiceConfiguration config)

get

public static ModelBusServiceConfiguration get(java.lang.Class serviceInterface)

getServiceName

public java.lang.String getServiceName()

setServiceName

public void setServiceName(java.lang.String serviceName)