[jboss-cvs] JBossAS SVN: r86250 - trunk/server/src/main/org/jboss/ejb.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Mar 24 08:53:53 EDT 2009
Author: adrian at jboss.org
Date: 2009-03-24 08:53:52 -0400 (Tue, 24 Mar 2009)
New Revision: 86250
Modified:
trunk/server/src/main/org/jboss/ejb/ContainerMBean.java
trunk/server/src/main/org/jboss/ejb/EntityContainerMBean.java
Log:
Source code and javadoc tidyup
Modified: trunk/server/src/main/org/jboss/ejb/ContainerMBean.java
===================================================================
--- trunk/server/src/main/org/jboss/ejb/ContainerMBean.java 2009-03-24 11:35:43 UTC (rev 86249)
+++ trunk/server/src/main/org/jboss/ejb/ContainerMBean.java 2009-03-24 12:53:52 UTC (rev 86250)
@@ -21,41 +21,50 @@
*/
package org.jboss.ejb;
+import javax.ejb.TimerService;
+import javax.naming.Context;
+import javax.naming.NamingException;
+
+import org.jboss.invocation.Invocation;
+
/**
* MBean interface.
- * @see EJBDeployer
*/
-public interface ContainerMBean extends org.jboss.system.ServiceMBean {
+public interface ContainerMBean extends org.jboss.system.ServiceMBean
+{
/**
- * Gets the application deployment unit for this container. All the bean containers within the same application unit share the same instance.
+ * @return Gets the application deployment unit for this container. All the bean containers within the same application unit share the same instance.
*/
- org.jboss.ejb.EjbModule getEjbModule() ;
+ EjbModule getEjbModule();
/**
- * Gets the number of create invocations that have been made
+ * @return Gets the number of create invocations that have been made
*/
- long getCreateCount() ;
+ long getCreateCount();
/**
- * Gets the number of remove invocations that have been made
+ * @return Gets the number of remove invocations that have been made
*/
- long getRemoveCount() ;
+ long getRemoveCount();
/**
- * Gets the invocation statistics collection
+ * @return Gets the invocation statistics collection
*/
- org.jboss.invocation.InvocationStatistics getInvokeStats() ;
+ org.jboss.invocation.InvocationStatistics getInvokeStats();
/**
* Get the components environment context
- * @return Environment Context */
- javax.naming.Context getEnvContext() throws javax.naming.NamingException;
+ * @return Environment Context
+ * @throws NamingException for any error
+ */
+ Context getEnvContext() throws NamingException;
/**
* Returns the metadata of this container.
- * @return metaData; */
- org.jboss.metadata.BeanMetaData getBeanMetaData() ;
+ * @return metaData;
+ */
+ org.jboss.metadata.BeanMetaData getBeanMetaData();
/**
* Creates the single Timer Servic for this container if not already created
@@ -64,20 +73,19 @@
* @throws IllegalStateException If the type of EJB is not allowed to use the timer service
* @see javax.ejb.EJBContext#getTimerService
*/
- javax.ejb.TimerService getTimerService(java.lang.Object pKey) throws java.lang.IllegalStateException;
+ TimerService getTimerService(Object pKey) throws IllegalStateException;
/**
* Removes Timer Servic for this container
* @param pKey Bean id
* @throws IllegalStateException If the type of EJB is not allowed to use the timer service
*/
- void removeTimerService(java.lang.Object pKey) throws java.lang.IllegalStateException;
+ void removeTimerService(Object pKey) throws IllegalStateException;
/**
* The detached invoker operation.
* @param mi - the method invocation context
* @return the value of the ejb invocation
* @throws Exception on error */
- java.lang.Object invoke(org.jboss.invocation.Invocation mi) throws java.lang.Exception;
-
+ Object invoke(Invocation mi) throws Exception;
}
Modified: trunk/server/src/main/org/jboss/ejb/EntityContainerMBean.java
===================================================================
--- trunk/server/src/main/org/jboss/ejb/EntityContainerMBean.java 2009-03-24 11:35:43 UTC (rev 86249)
+++ trunk/server/src/main/org/jboss/ejb/EntityContainerMBean.java 2009-03-24 12:53:52 UTC (rev 86250)
@@ -26,13 +26,17 @@
* @see Container
* @see EntityEnterpriseContext
*/
-public interface EntityContainerMBean extends org.jboss.ejb.ContainerMBean {
+public interface EntityContainerMBean extends ContainerMBean
+{
+ /**
+ * Get the cache size
+ *
+ * @return the cache size
+ */
+ long getCacheSize();
- long getCacheSize() ;
-
/**
* Flush the cache
*/
- void flushCache() ;
-
+ void flushCache();
}
More information about the jboss-cvs-commits
mailing list