|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.ChannelFactory
public class ChannelFactory
A factory class that produces IChannel
instances.
This class maintains a lazily-loaded, but permanent
cache of channels that implement one of uPortal's
multithreaded interfaces, IMultithreadedChannel or one of its variants.
Field Summary | |
---|---|
private static java.lang.ClassLoader |
classLoader
Create a CAR class loader object for loading channel classes from CARs Note that the current class loader is passed as the parent and is searched before CARs are. |
private static org.apache.commons.logging.Log |
log
|
private static java.util.Hashtable |
staticChannels
table of multithreaded channels |
Constructor Summary | |
---|---|
ChannelFactory()
|
Method Summary | |
---|---|
static IChannel |
instantiateChannel(java.lang.String className,
java.lang.String uid)
Produce an IChannel based on a java class name. |
private static IChannel |
instantiateChannel(java.lang.String channelSubscribeId,
java.lang.String channelPublishId,
java.lang.String className,
long timeOut,
java.util.Map params,
java.lang.String sessionId)
|
static IChannel |
instantiateLayoutChannel(IUserLayoutChannelDescription description,
java.lang.String sessionId)
Construct channel instance based on a channel description object. |
static IChannel |
instantiateLayoutChannel(java.lang.String channelSubscribeId,
IUserLayoutManager ulm,
java.lang.String sessionId)
Instantiate a channel from information supplied by the user layout manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
private static final java.util.Hashtable staticChannels
private static java.lang.ClassLoader classLoader
Constructor Detail |
---|
public ChannelFactory()
Method Detail |
---|
public static IChannel instantiateLayoutChannel(java.lang.String channelSubscribeId, IUserLayoutManager ulm, java.lang.String sessionId) throws PortalException
channelSubscribeId
- a String
valueulm
- an IUserLayoutManager
valuesessionId
- a String
HTTP session Id value
IChannel
instance
PortalException
- if an error occurspublic static IChannel instantiateLayoutChannel(IUserLayoutChannelDescription description, java.lang.String sessionId) throws PortalException
description
- an IUserLayoutChannelDescription
valuesessionId
- a String
HTTP session Id value
IChannel
value
PortalException
private static IChannel instantiateChannel(java.lang.String channelSubscribeId, java.lang.String channelPublishId, java.lang.String className, long timeOut, java.util.Map params, java.lang.String sessionId) throws PortalException
PortalException
public static IChannel instantiateChannel(java.lang.String className, java.lang.String uid) throws PortalException
org.jasig.portal.IChannel
, it will be wrapped by an
appropriate adapter class that does implement IChannel.
className
- the channel's java class nameuid
- a unique ID for use with multithreaded channels
IChannel
object
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |