|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.portlet.test.TestPortletInvoker
A simple consumer.
| Field Summary | |
private InvocationHandler |
handler
. |
private PortletInvoker |
producer
. |
private InterceptorStackFactory |
stackFactory
. |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|
| Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
TestPortletInvoker()
|
|
| Method Summary | |
PortletContext |
createClone(PortletContext portletContext)
Clone a portlet. |
java.util.List |
destroyClones(java.util.List portletContexts)
Destroy a cloned portlet. |
Portlet |
getPortlet(PortletContext portletContext)
Get information about a specific portlet. |
java.util.Set |
getPortlets()
Return the set of portlet exposed. |
PortletInvoker |
getProducer()
|
PropertyMap |
getProperties(PortletContext portletContext)
Return all the properties of the specified portlet. |
PropertyMap |
getProperties(PortletContext portletContext,
java.util.Set keys)
Return a subset of the properties of the specified portlet. |
InterceptorStackFactory |
getStackFactory()
|
PortletInvocationResponse |
invoke(PortletInvocation invocation)
Invoke an operation on a specific portlet. |
void |
setProducer(PortletInvoker producer)
|
PortletContext |
setProperties(PortletContext portletContext,
PropertyChange[] changes)
Set the properties on the specified portlet. |
void |
setStackFactory(InterceptorStackFactory stackFactory)
|
| Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService |
create, destroy, getState, getStateString, start, stop |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private InterceptorStackFactory stackFactory
private PortletInvoker producer
private InvocationHandler handler
| Constructor Detail |
public TestPortletInvoker()
| Method Detail |
public InterceptorStackFactory getStackFactory()
public void setStackFactory(InterceptorStackFactory stackFactory)
public PortletInvoker getProducer()
public void setProducer(PortletInvoker producer)
public java.util.Set getPortlets()
throws PortletInvokerException
PortletInvoker
getPortlets in interface PortletInvokerPortletInvokerExceptionpublic Portlet getPortlet(PortletContext portletContext) throws java.lang.IllegalArgumentException, PortletInvokerException
PortletInvoker
getPortlet in interface PortletInvokerportletContext - the portlet context in the scope of this invoker
PortletInfo for the specified portlet
java.lang.IllegalArgumentException - if the portlet context is null
PortletInvokerExceptionpublic PortletInvocationResponse invoke(PortletInvocation invocation) throws PortletInvokerException
PortletInvoker
invoke in interface PortletInvokerinvocation - the portlet invocation
PortletInvokerExceptionpublic PortletContext createClone(PortletContext portletContext) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
createClone in interface PortletInvokerjava.lang.UnsupportedOperationException - if the invoker does not support this operation
java.lang.IllegalArgumentException - if the portletId is null
PortletInvokerException
public java.util.List destroyClones(java.util.List portletContexts)
throws java.lang.IllegalArgumentException,
PortletInvokerException,
java.lang.UnsupportedOperationException
PortletInvoker
destroyClones in interface PortletInvokerportletContexts - a list of portlet contexts to destroy
java.lang.IllegalArgumentException - if the portletId is null
java.lang.UnsupportedOperationException - if the invoker does not support this operation
PortletInvokerExceptionpublic PropertyMap getProperties(PortletContext portletContext, java.util.Set keys) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
getProperties in interface PortletInvokerportletContext - the portlet contextkeys - the set of keys to retrieve
java.lang.UnsupportedOperationException - if the invoker does not support this operation
java.lang.IllegalArgumentException - if the portletId or the keys arguments are null
PortletInvokerExceptionpublic PropertyMap getProperties(PortletContext portletContext) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
getProperties in interface PortletInvokerportletContext - the portlet context
java.lang.UnsupportedOperationException - if the invoker does not support this operation
java.lang.IllegalArgumentException - if the portletId is null
PortletInvokerExceptionpublic PortletContext setProperties(PortletContext portletContext, PropertyChange[] changes) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
setProperties in interface PortletInvokerportletContext - the portlet contextchanges - the changes
java.lang.UnsupportedOperationException - if the invoker does not support this operation
java.lang.IllegalArgumentException - if the portletId or the properties is null
PortletInvokerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||