Interface IClassManager
- All Superinterfaces:
IComponent
,IComponentProvider
,IInitializable
,IURIResolver
Manages dynamically deployed classes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Default component name for ClassManager implementationstatic final String
Fields inherited from interface com.webmethods.portal.system.IComponentProvider
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
getAutoReload
(String groupName) Returns current auto reload status for class groupClass<?>
Returns Class object for the given className.Returns full class pathgetFilePathForClass
(String className, String contextName) boolean
isClassRegistered
(String className) Checks whether or not the class is registeredvoid
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 callsreloadClasses(java.lang.String)
for whole groupvoid
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 folderMethods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.IComponentProvider
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
Methods inherited from interface com.webmethods.portal.system.IURIResolver
acquireURI, acquireURI
-
Field Details
-
JSP_CLASS_GROUP_NAME
- See Also:
-
COMPONENT_NAME
Default component name for ClassManager implementation- See Also:
-
-
Method Details
-
getClass
Returns Class object for the given className. If the class cannot be loaded throws exception.- Parameters:
className
- the class name- Returns:
Class
object for this class name or throws exception- Throws:
ClassNotFoundException
-
getClassPath
Returns full class path- Returns:
- full class path for the application
- Throws:
PortalException
-
registerClass
Registers class with a given className. The groupName is the name of the class loader instance. Classes with the same groupName are phy meaning they can use instanceof and cast operations- Parameters:
className
- the class namegroupName
-classData
-- Throws:
PortalException
-
registerClasses
- Throws:
PortalException
-
unregisterClass
Unregisters (deletes) class from the MDS and dynamic classes folder- Parameters:
className
- the class name to unregister- Throws:
PortalException
-
isClassRegistered
Checks whether or not the class is registered- Parameters:
className
- the class name to check- Returns:
- true if the class is registeed
- Throws:
PortalException
-
reloadClass
Reloads class specified by className, this eventually callsreloadClasses(java.lang.String)
for whole group- Parameters:
className
- the class name- Throws:
PortalException
-
reloadClasses
Reloads all classes for the given group.- Parameters:
groupName
- the class group name- Throws:
PortalException
-
setAutoReload
Marks classes group as autoreloadable from the 'dynamic classes folder'- Parameters:
groupName
-- Throws:
PortalException
-
getAutoReload
Returns current auto reload status for class group- Parameters:
groupName
- the class group name- Returns:
- true if this group checks for auto reload
- Throws:
PortalException
-
checkForAutoReload
- Throws:
PortalException
-
getFilePathForClass
-