As described above, classes used for Nucleus components typically implement a large number of standard interfaces. When you create new classes, you can greatly simplify your task by extending the atg.nucleus.GenericService class. This class implements most of the key Nucleus interfaces, so classes that extend it automatically implement these interfaces as well. (The key Nucleus interfaces that GenericService does not implement are atg.naming.NameContext and atg.naming.NameContextBindingEventSource. However, these interfaces are implemented by a subclass of GenericService, atg.nucleus.GenericContext, described below. If your class needs to implement the NameContext and NameContextBindingEventSource interfaces, you should extend GenericContext rather than GenericService.)

When you create a component that extends GenericService, you should be aware of the following:

Your component may not need to use all or any of this functionality. You should, however, be aware that all of these functions are available if your component extends GenericService.

Note: Be sure not to have a getName or setName method in a component that subclasses GenericService. If you do, then your component’s Nucleus pathname can become confused.

 
loading table of contents...