当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
CMSTreeCacheServiceImpl - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.cms.impl.cache
Class CMSTreeCacheServiceImpl
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.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
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.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
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.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 |
cache
private TreeCacheMBean cache
log
private org.jboss.logging.Logger log
jndiName
private java.lang.String jndiName
jndiBinding
protected JNDI.Binding jndiBinding
CMSTreeCacheServiceImpl
public CMSTreeCacheServiceImpl()
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)