站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

TreeImpl - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.impl.tree
Class TreeImpl

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.common.system.AbstractJBossService
              extended byorg.jboss.portal.core.impl.tree.TreeImpl
All Implemented Interfaces:
javax.management.MBeanRegistration, org.jboss.portal.core.impl.tree.NodeStateEventListener, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean, TransactionManagerProvider, Tree

public class TreeImpl
extends AbstractJBossService
implements Tree, TransactionManagerProvider, org.jboss.portal.core.impl.tree.NodeStateEventListener

Implementation of tree that delegates to JBoss Cache.


Nested Class Summary
protected  class TreeImpl.FixedTreeCache
          Override createInterceptorChain() in order to replace cache loader interceptor with the fixed version one.
 
Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.portal.common.transaction.TransactionManagerProvider
JBOSS_PROVIDER
 
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
TreeImpl()
           
 
Method Summary
 void addNodeChangeListener(NodeChangeListener listener)
          Add a change listener on this node.
 void cacheStarted(TreeCache cache)
           
 void cacheStopped(TreeCache cache)
           
protected  void createService()
           
protected  void destroyService()
           
 TreeCache getCache()
           
 java.lang.String getCacheConfiguration()
           
 Node getNode(FQN fqn)
          Returns the node by its id or null if it does not exists.
static Fqn getParentFqn(Fqn childFqn)
          Return the parent fqn of the given fqn.
 Node getRoot()
          Returns the root node of the tree.
 Session getSession()
          Returns a new session.
 javax.transaction.TransactionManager getTransactionManager()
          Provide access to the transaction manager.
 void handle(NodeStateEvent[] events)
           
 void nodeCreated(Fqn fqn)
           
 void nodeEvicted(Fqn fqn)
           
 void nodeLoaded(Fqn fqn)
           
 void nodeModified(Fqn fqn)
           
 void nodeRemoved(Fqn fqn)
           
 void nodeVisited(Fqn fqn)
           
 void removeNodeChangeListener(NodeChangeListener listener)
          Remove a change listener on this node.
 void setCacheConfiguration(java.lang.String cacheConfiguration)
           
protected  void startService()
           
protected  void stopService()
           
static Fqn toFqn(FQN fqn)
           
static FQN toFQN(Fqn fqn)
           
 void viewChange(View view)
           
 
Methods inherited from class org.jboss.portal.common.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister
 
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
 

Constructor Detail

TreeImpl

public TreeImpl()
Method Detail

handle

public void handle(NodeStateEvent[] events)
Specified by:
handle in interface org.jboss.portal.core.impl.tree.NodeStateEventListener

createService

protected void createService()
                      throws java.lang.Exception
Throws:
java.lang.Exception

startService

protected void startService()
                     throws java.lang.Exception
Throws:
java.lang.Exception

stopService

protected void stopService()

destroyService

protected void destroyService()

getCache

public TreeCache getCache()

getCacheConfiguration

public java.lang.String getCacheConfiguration()

setCacheConfiguration

public void setCacheConfiguration(java.lang.String cacheConfiguration)

getNode

public Node getNode(FQN fqn)
Description copied from interface: Tree
Returns the node by its id or null if it does not exists.

Specified by:
getNode in interface Tree
Returns:
the specified node

getSession

public Session getSession()
Description copied from interface: Tree
Returns a new session.

Specified by:
getSession in interface Tree
Returns:
a new session

getRoot

public Node getRoot()
Description copied from interface: Tree
Returns the root node of the tree.

Specified by:
getRoot in interface Tree
Returns:
the root node

addNodeChangeListener

public void addNodeChangeListener(NodeChangeListener listener)
Description copied from interface: Tree
Add a change listener on this node.

Specified by:
addNodeChangeListener in interface Tree

removeNodeChangeListener

public void removeNodeChangeListener(NodeChangeListener listener)
Description copied from interface: Tree
Remove a change listener on this node.

Specified by:
removeNodeChangeListener in interface Tree

getTransactionManager

public javax.transaction.TransactionManager getTransactionManager()
Description copied from interface: TransactionManagerProvider
Provide access to the transaction manager.

Specified by:
getTransactionManager in interface TransactionManagerProvider
Returns:
return the transaction manager.

nodeCreated

public void nodeCreated(Fqn fqn)

nodeRemoved

public void nodeRemoved(Fqn fqn)

nodeModified

public void nodeModified(Fqn fqn)

nodeLoaded

public void nodeLoaded(Fqn fqn)

nodeEvicted

public void nodeEvicted(Fqn fqn)

nodeVisited

public void nodeVisited(Fqn fqn)

cacheStarted

public void cacheStarted(TreeCache cache)

cacheStopped

public void cacheStopped(TreeCache cache)

viewChange

public void viewChange(View view)

getParentFqn

public static Fqn getParentFqn(Fqn childFqn)
Return the parent fqn of the given fqn.


toFqn

public static Fqn toFqn(FQN fqn)

toFQN

public static FQN toFQN(Fqn fqn)