public interface IClassManager extends IComponentProvider
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_NAME
Default component name for ClassManager implementation
|
static String |
JSP_CLASS_GROUP_NAME |
ATTR_APP_NAME, ATTR_BEG_QUERY, ATTR_END_QUERY, ATTR_MID_QUERY, BIZPOLICY_MANAGER, CACHE_PROVIDER, COMMAND_PROVIDER, COMPONENTS_QUERY, INSTALL_PROVIDER, MECH_PROVIDER, METACONTEXT_PROVIDER, PHASE_PROVIDER, POLICY_PROVIDER, SEARCH_PROVIDER
Modifier and Type | Method and Description |
---|---|
void |
checkForAutoReload() |
boolean |
getAutoReload(String groupName)
Returns current auto reload status for class group
|
Class<?> |
getClass(String className)
Returns Class object for the given className.
|
String |
getClassPath()
Returns full class path
|
String |
getFilePathForClass(String className,
String contextName) |
boolean |
isClassRegistered(String className)
Checks whether or not the class is registered
|
void |
registerClass(String className,
String groupName,
byte[] classData)
Registers class with a given className.
|
void |
registerClasses(Map<String,byte[]> classes,
String groupName) |
void |
reloadClass(String className)
Reloads class specified by className, this eventually calls
reloadClasses(java.lang.String) for whole group |
void |
reloadClasses(String groupName)
Reloads all classes for the given group.
|
void |
setAutoReload(String groupName,
boolean enabled)
Marks classes group as autoreloadable from the 'dynamic classes folder'
|
void |
unregisterClass(String className)
Unregisters (deletes) class from the MDS and dynamic classes folder
|
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
acquireURI, acquireURI
static final String JSP_CLASS_GROUP_NAME
static final String COMPONENT_NAME
Class<?> getClass(String className) throws ClassNotFoundException
className
- the class nameClass
object for this class name or throws exceptionClassNotFoundException
String getClassPath() throws PortalException
PortalException
void registerClass(String className, String groupName, byte[] classData) throws PortalException
className
- the class namegroupName
- classData
- PortalException
void registerClasses(Map<String,byte[]> classes, String groupName) throws PortalException
PortalException
void unregisterClass(String className) throws PortalException
className
- the class name to unregisterPortalException
boolean isClassRegistered(String className) throws PortalException
className
- the class name to checkPortalException
void reloadClass(String className) throws PortalException
reloadClasses(java.lang.String)
for whole groupclassName
- the class namePortalException
void reloadClasses(String groupName) throws PortalException
groupName
- the class group namePortalException
void setAutoReload(String groupName, boolean enabled) throws PortalException
groupName
- PortalException
boolean getAutoReload(String groupName) throws PortalException
groupName
- the class group namePortalException
void checkForAutoReload() throws PortalException
PortalException