As an alternative to representing a Java action handler as an ICodeModule object, you could specify the Java action handler in the classpath of your application server. However, it is recommended that you check in an action handler and any supporting libraries as a code module. Code modules are automatically available when deploying the Content Engine to multiple application server instances, or moving your content metadata from one system to another. If you reference action handlers in the classpath of an application server, you must manually distribute the action handlers to new systems.
To create an ICodeModule object, call the CreateInstance method on the Factory.CodeModule class, and then set the content elements on the object. A content element can be a Java class or a JAR file. Each content element must have the correct MimeType property value. For content elements containing a Java class, acceptable MIME types are "application/java", "application/java-byte-code", and "application/x-java-class". For content elements containing a JAR file, the MIME type must be "application/java-archive".
The content elements that you set on an ICodeModule object must be of type IContentTransfer, not IContentReference. If you attempt to save an ICodeModule object with an IContentReference type, the server will throw an EVENT_CM_CONTENTREFERENCE_NOT_ALLOWED exception.
Note If you update an action handler, you must update the ICodeModule object with the new version of the action handler. Then you must update the CodeModule property of any IAction-based subobjects that reference the ICodeModule object that has been updated.
For cache configuration considerations, see the applicable code module-related properties in the IServerCacheConfiguration interface.
Assembly: FileNet.Api (in FileNet.Api.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Interface ICodeModule _ Implements IDocument, IRepositoryObject, IVersionable, IContainable, _ ICmHoldable, IReplicable, ISubscribable, IIndependentlyPersistableObject, IIndependentObject, _ IEngineObject, ICloneable |
C# |
---|
public interface ICodeModule : IDocument, IRepositoryObject, IVersionable, IContainable, ICmHoldable, IReplicable, ISubscribable, IIndependentlyPersistableObject, IIndependentObject, IEngineObject, ICloneable |
Visual C++ |
---|
public interface class ICodeModule : IDocument, IRepositoryObject, IVersionable, IContainable, ICmHoldable, IReplicable, ISubscribable, IIndependentlyPersistableObject, IIndependentObject, IEngineObject, ICloneable |
JavaScript |
---|
FileNet.Api.Admin.ICodeModule = function(); FileNet.Api.Admin.ICodeModule.createInterface('FileNet.Api.Admin.ICodeModule'); |
Remarks
Metadata
Auditable: undefined
AllowsInstances: true
AllowsSubClasses: true
ClassDefinitionName: DocumentClassDefinition
IsDependent: false
IsHidden: true
Searchable: true
StorageType: ObjectStore
SuperclassName: Document