|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.portal.jems.as.system.AbstractJBossService org.jboss.portal.portlet.container.PortletContainerInvoker
An implementation of portlet invoker that makes a call to a portlet container.
Field Summary | |
private InvocationHandler |
handler
. |
private PortletApplicationRegistry |
registry
. |
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 | |
PortletContainerInvoker()
|
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. |
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. |
PortletApplicationRegistry |
getRegistry()
|
InterceptorStackFactory |
getStackFactory()
|
PortletInvocationResponse |
invoke(PortletInvocation invocation)
Invoke an operation on a specific portlet. |
PortletContext |
setProperties(PortletContext portletContext,
PropertyChange[] changes)
Set the properties on the specified portlet. |
void |
setRegistry(PortletApplicationRegistry registry)
|
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 PortletApplicationRegistry registry
private InterceptorStackFactory stackFactory
private InvocationHandler handler
Constructor Detail |
public PortletContainerInvoker()
Method Detail |
public PortletApplicationRegistry getRegistry()
public void setRegistry(PortletApplicationRegistry registry)
public InterceptorStackFactory getStackFactory()
public void setStackFactory(InterceptorStackFactory stackFactory)
public java.util.Set getPortlets()
PortletInvoker
getPortlets
in interface PortletInvoker
public Portlet getPortlet(PortletContext portletContext) throws java.lang.IllegalArgumentException, PortletInvokerException
PortletInvoker
getPortlet
in interface PortletInvoker
portletContext
- the portlet context in the scope of this invoker
PortletInfo
for the specified portlet
java.lang.IllegalArgumentException
- if the portlet context is null
PortletInvokerException
public PortletInvocationResponse invoke(PortletInvocation invocation) throws PortletInvokerException, InvocationException
PortletInvoker
invoke
in interface PortletInvoker
invocation
- the portlet invocation
PortletInvokerException
InvocationException
public PortletContext createClone(PortletContext portletContext) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
createClone
in interface PortletInvoker
java.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 PortletInvoker
portletContexts
- 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
PortletInvokerException
public PropertyMap getProperties(PortletContext portletContext, java.util.Set keys) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
getProperties
in interface PortletInvoker
portletContext
- 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
PortletInvokerException
public PropertyMap getProperties(PortletContext portletContext) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
getProperties
in interface PortletInvoker
portletContext
- the portlet context
java.lang.UnsupportedOperationException
- if the invoker does not support this operation
java.lang.IllegalArgumentException
- if the portletId is null
PortletInvokerException
public PortletContext setProperties(PortletContext portletContext, PropertyChange[] changes) throws java.lang.IllegalArgumentException, PortletInvokerException, java.lang.UnsupportedOperationException
PortletInvoker
setProperties
in interface PortletInvoker
portletContext
- 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 |