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

CMSTreeCacheServiceImpl - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.cms.impl.cache
Class CMSTreeCacheServiceImpl

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.jems.as.system.AbstractJBossService
              extended byorg.jboss.portal.cms.impl.cache.CMSTreeCacheServiceImpl
All Implemented Interfaces:
CMSTreeCacheService, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class CMSTreeCacheServiceImpl
extends AbstractJBossService
implements CMSTreeCacheService

Version:
$Revision: 5448 $
Author:
Thomas Heute

Field Summary
private  TreeCacheMBean cache
           
protected  JNDI.Binding jndiBinding
           
private  java.lang.String jndiName
           
private  org.jboss.logging.Logger log
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
 
Fields inherited from interface org.jboss.portal.cms.impl.CMSTreeCacheService
JNDIName
 
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
CMSTreeCacheServiceImpl()
           
 
Method Summary
 File get(java.lang.String path, java.util.Locale locale)
          Get a file from the cache, returns null if the file cannot be found
 TreeCacheMBean getCache()
           
 java.lang.String getJNDIName()
           
 void put(java.lang.String path, java.util.Locale locale, File file)
          Put a CMS file into the cache
 void remove(java.lang.String path)
          Remove a file (all languages)
 void remove(java.lang.String path, java.util.Locale locale)
          Remove a localized file
 void setCache(TreeCacheMBean cache)
           
 void setJNDIName(java.lang.String jndiName)
           
 void startService()
           
 void stopService()
           
 
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
 
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

cache

private TreeCacheMBean cache

log

private org.jboss.logging.Logger log

jndiName

private java.lang.String jndiName

jndiBinding

protected JNDI.Binding jndiBinding
Constructor Detail

CMSTreeCacheServiceImpl

public CMSTreeCacheServiceImpl()
Method Detail

getJNDIName

public java.lang.String getJNDIName()

setJNDIName

public void setJNDIName(java.lang.String jndiName)

get

public File get(java.lang.String path,
                java.util.Locale locale)
Description copied from interface: CMSTreeCacheService
Get a file from the cache, returns null if the file cannot be found

Specified by:
get in interface CMSTreeCacheService

put

public void put(java.lang.String path,
                java.util.Locale locale,
                File file)
Description copied from interface: CMSTreeCacheService
Put a CMS file into the cache

Specified by:
put in interface CMSTreeCacheService

remove

public void remove(java.lang.String path,
                   java.util.Locale locale)
            throws CMSCacheException
Description copied from interface: CMSTreeCacheService
Remove a localized file

Specified by:
remove in interface CMSTreeCacheService
Throws:
CMSCacheException

remove

public void remove(java.lang.String path)
            throws CMSCacheException
Description copied from interface: CMSTreeCacheService
Remove a file (all languages)

Specified by:
remove in interface CMSTreeCacheService
Throws:
CMSCacheException

startService

public void startService()

stopService

public void stopService()

getCache

public TreeCacheMBean getCache()

setCache

public void setCache(TreeCacheMBean cache)