|
||||||||||
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.common.system.AbstractJBossService org.jboss.portal.core.impl.tree.TreeImpl
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 |
public TreeImpl()
Method Detail |
public void handle(NodeStateEvent[] events)
handle
in interface org.jboss.portal.core.impl.tree.NodeStateEventListener
protected void createService() throws java.lang.Exception
java.lang.Exception
protected void startService() throws java.lang.Exception
java.lang.Exception
protected void stopService()
protected void destroyService()
public TreeCache getCache()
public java.lang.String getCacheConfiguration()
public void setCacheConfiguration(java.lang.String cacheConfiguration)
public Node getNode(FQN fqn)
Tree
public Session getSession()
Tree
getSession
in interface Tree
public Node getRoot()
Tree
public void addNodeChangeListener(NodeChangeListener listener)
Tree
addNodeChangeListener
in interface Tree
public void removeNodeChangeListener(NodeChangeListener listener)
Tree
removeNodeChangeListener
in interface Tree
public javax.transaction.TransactionManager getTransactionManager()
TransactionManagerProvider
getTransactionManager
in interface TransactionManagerProvider
public void nodeCreated(Fqn fqn)
public void nodeRemoved(Fqn fqn)
public void nodeModified(Fqn fqn)
public void nodeLoaded(Fqn fqn)
public void nodeEvicted(Fqn fqn)
public void nodeVisited(Fqn fqn)
public void cacheStarted(TreeCache cache)
public void cacheStopped(TreeCache cache)
public void viewChange(View view)
public static Fqn getParentFqn(Fqn childFqn)
public static Fqn toFqn(FQN fqn)
public static FQN toFQN(Fqn fqn)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |