Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
1.0.1
-
None
Description
The pluto container defines a set of Factory interfaces to create certain classes, such as classes in the "javax.portlet" package. In the FactoryManagerService interface, the following method is defined:
public Factory getFactory(Class theClass);
The method signature seems to mean that: get a factory instance that i can use to create the specified class (theClass). For example, pluto will call FactoryManagerService.getFactory(RenderRequest.class) to get a render request factory instance which may be used to create RenderRequest instances. Thus...
1- In the "org.apache.pluto.util.ObjectIDAccess" class, to get an ObjectIDFactory instance, which may be used to create ObjectID instances, Pluto should call 'FactoryManagerService.getFactory(ObjectID.class)' instead of 'FactoryManagerService.getFactory(ObjectIDFactory.class)'.
2 - In the "org.apache.pluto.om.ControllerObjectAccess" class, to get a ControllerFactory instance, which may be used to create Controller instances, Pluto should call 'FactoryManagerService.getFactory(Controller.class)' instead of 'FactoryManagerService.getFactory(ControllerFactory.class)'.
Regards.
ZHENG Zhong