org.ow2.jonas.ws.jaxrpc.mbean
Class WebServicesObjectName

java.lang.Object
  extended by org.ow2.jonas.ws.jaxrpc.mbean.WebServicesObjectName

public class WebServicesObjectName
extends Object

ToolKit for WebServices Mbeans. It Helps to create ObjectNames for the WebServices MBeans, simplify MBeans queries, ...

Author:
Guillaume Sauthier

Field Summary
static String EJBMODULE
          j2eeType for EJB modules
static String HANDLER_TYPE
          WebServiceHandler type property
static String J2EEAPPLICATION
          j2eeType for ear
static String J2EESERVER
          j2eeType for server instance
static String PORTCOMPONENT_TYPE
          WebServicePortComponent type property
static String WEBMODULE
          j2eeType for Web modules
static String WEBSERVICE_TYPE
          WebService type property
 
Method Summary
static ObjectName getEJBModule(ObjectName ear, String key)
           
static ObjectName getServletQuery(ObjectName parent, String servletName)
           
static ObjectName getStatelessSessionBeanQuery(ObjectName parent, String ejbName)
           
static ObjectName getWebModule(ObjectName ear, String key)
           
static ObjectName handler(String name, ObjectName parent)
           
static ObjectName portComponent(String name, ObjectName parent)
           
static ObjectName service(String name, ObjectName parent)
           
static void setDomain(String myDomain)
          Sets the domain name of the JOnAS server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEBSERVICE_TYPE

public static final String WEBSERVICE_TYPE
WebService type property

See Also:
Constant Field Values

PORTCOMPONENT_TYPE

public static final String PORTCOMPONENT_TYPE
WebServicePortComponent type property

See Also:
Constant Field Values

HANDLER_TYPE

public static final String HANDLER_TYPE
WebServiceHandler type property

See Also:
Constant Field Values

EJBMODULE

public static final String EJBMODULE
j2eeType for EJB modules

See Also:
Constant Field Values

WEBMODULE

public static final String WEBMODULE
j2eeType for Web modules

See Also:
Constant Field Values

J2EEAPPLICATION

public static final String J2EEAPPLICATION
j2eeType for ear

See Also:
Constant Field Values

J2EESERVER

public static final String J2EESERVER
j2eeType for server instance

See Also:
Constant Field Values
Method Detail

setDomain

public static void setDomain(String myDomain)
Sets the domain name of the JOnAS server.

Parameters:
myDomain - domain name

service

public static ObjectName service(String name,
                                 ObjectName parent)
                          throws MalformedObjectNameException
Parameters:
name - Service id
parent - parent name
Returns:
ObjectName for Service
Throws:
MalformedObjectNameException - Could not create ObjectName with the given String

portComponent

public static ObjectName portComponent(String name,
                                       ObjectName parent)
                                throws MalformedObjectNameException
Parameters:
name - PortComponent id
parent - parent name
Returns:
ObjectName for PortComponent
Throws:
MalformedObjectNameException - Could not create ObjectName with the given String

handler

public static ObjectName handler(String name,
                                 ObjectName parent)
                          throws MalformedObjectNameException
Parameters:
name - PortComponent id
parent - parent name
Returns:
Returns the ObjectName for PortComponent
Throws:
MalformedObjectNameException - Could not create ObjectName with the given String

getStatelessSessionBeanQuery

public static ObjectName getStatelessSessionBeanQuery(ObjectName parent,
                                                      String ejbName)
Parameters:
parent - parent ObjectName (J2EEApplication or J2EEModule subtype)
ejbName - SSB name
Returns:
Returns a Query ObjectName used to find a StatelessSessionBean coming from a particular J2EEApplication/J2EEModule

getServletQuery

public static ObjectName getServletQuery(ObjectName parent,
                                         String servletName)
Parameters:
parent - parent J2EEApplication's ObjectName
servletName - servlet name
Returns:
Returns a Query ObjectName used to find a Servlet coming from a particular J2EEApplication

getEJBModule

public static ObjectName getEJBModule(ObjectName ear,
                                      String key)
Parameters:
ear - parent J2EEApplication's ObjectName
key - EJBModule name
Returns:
Returns a Query ObjectName used to find an EJBModule coming from a particular J2EEApplication

getWebModule

public static ObjectName getWebModule(ObjectName ear,
                                      String key)
Parameters:
ear - parent J2EEApplication's ObjectName
key - WebModule name
Returns:
Returns a Query ObjectName used to find an WebModule coming from a particular J2EEApplication


Copyright © 2010 OW2 Consortium. All Rights Reserved.