PooliT v2.0

org.ascentphase.poolit.handlers
Class NoArgHandler

java.lang.Object
  extended byorg.ascentphase.poolit.handlers.BaseHandler
      extended byorg.ascentphase.poolit.handlers.NoArgHandler
All Implemented Interfaces:
PoolHandler

public class NoArgHandler
extends BaseHandler

This is a Handler for objects with a "no-argument" constructor, ie: a constructor with a zero argument list. This class takes a Class reference and invokes the newInstance() method to create new objects.

Author:
Huy Duong

Constructor Summary
NoArgHandler(java.lang.Class name)
          Create a NoArgHandler for the specified class
 
Method Summary
 java.lang.Object create()
          Called by a Pooler to create a new object.
 
Methods inherited from class org.ascentphase.poolit.handlers.BaseHandler
destroy, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoArgHandler

public NoArgHandler(java.lang.Class name)
Create a NoArgHandler for the specified class

Parameters:
name - class reference this Handler will create
Method Detail

create

public java.lang.Object create()
                        throws CreateException
Description copied from interface: PoolHandler
Called by a Pooler to create a new object.

Specified by:
create in interface PoolHandler
Specified by:
create in class BaseHandler
Throws:
CreateException

PooliT v2.0

Copyright © 2005 Ascent Phase Corp.