Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01

weblogic.management.runtime
Interface JaxRsResourceRuntimeMBean

All Superinterfaces:
DynamicMBean, JaxRsMonitoringInfoRuntimeMBean, MBeanRegistration, NotificationBroadcaster, RuntimeMBean, WebLogicMBean

public interface JaxRsResourceRuntimeMBean
extends JaxRsMonitoringInfoRuntimeMBean

The runtime MBean of a JAX-RS resource. EJB(Stateless and Singleton), POJO are the two component types that are supported. Each JAX-RS resource has a scope associated with that. Any object that is managed by a container (such as EJB) will have application scope. All other resources by default will have request scope.

Access limited to the following security roles:
Operator

Field Summary
static String TYPE_EJB
           
static String TYPE_POJO
           
 
Method Summary
 String getClassName()
          Provides the class name of the resource
 String getPath()
          Provides the path that is annotated on this resource
 JaxRsResourceMethodRuntimeMBean[] getResourceMethods()
          Provides all the resource methods
 String getResourceType()
          Provides the type(POJO or EJB) of the resource
 JaxRsSubResourceLocatorRuntimeMBean[] getSubResourceLocators()
          Provides all the sub-resource locators.
 JaxRsResourceMethodRuntimeMBean lookupResourceMethods(String name)
          Provides the resource method identified by the given name
 JaxRsSubResourceLocatorRuntimeMBean lookupSubResourceLocators(String name)
          Provides the sub-resource locator identified by the given name
 
Methods inherited from interface weblogic.management.runtime.JaxRsMonitoringInfoRuntimeMBean
getExecutionTimeAverage, getExecutionTimeHigh, getExecutionTimeLow, getExecutionTimeTotal, getInvocationCount, getLastInvocationTime, getStartTime
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Field Detail

TYPE_POJO

static final String TYPE_POJO
See Also:
Constant Field Values

TYPE_EJB

static final String TYPE_EJB
See Also:
Constant Field Values
Method Detail

getClassName

String getClassName()

Provides the class name of the resource

Returns:
The name of the class exposed as a JAX-RS resource

getResourceType

String getResourceType()

Provides the type(POJO or EJB) of the resource

Returns:
The type represented by a string of the resource The possible values are POJO,EJB

getPath

String getPath()

Provides the path that is annotated on this resource

Returns:
The path value that is available on the @Path annotation of the JAX-RS resource class

getSubResourceLocators

JaxRsSubResourceLocatorRuntimeMBean[] getSubResourceLocators()

Provides all the sub-resource locators.

Returns:
The array of sub-resource locator MBeans that the JAX-RS resource has

lookupSubResourceLocators

JaxRsSubResourceLocatorRuntimeMBean lookupSubResourceLocators(String name)

Provides the sub-resource locator identified by the given name

Parameters:
name - the name of the MBean. The name is just the method name. If there are overloaded methods, the name of the second method onwards, is appended with running number starting with 1
Returns:
The sub-resource locator MBean found by the given name

getResourceMethods

JaxRsResourceMethodRuntimeMBean[] getResourceMethods()

Provides all the resource methods

Returns:
The list of resource method MBeans that the JAX-RS resource has

lookupResourceMethods

JaxRsResourceMethodRuntimeMBean lookupResourceMethods(String name)

Provides the resource method identified by the given name

Parameters:
name - the name of the MBean If there are overloaded methods, the name of the second method onwards, is appended with running number starting with 1
Returns:
The resource method MBean identified by the given name

Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01