Jetif v1.8.0

jetif
Interface HandlerSpec


public interface HandlerSpec

A HandlerSpec is the specification of a custom object handler. The framework will try to load class with the name returned by getClassName() when this handler is going to use, which means a handler won't be loaded if no one use it.

Author:
Vicky Wang

Method Summary
 String getArgument()
          Get the argument to contruct this handler.
 String getClassName()
          Get the class name of the implementation class of this handler.
 String getName()
          Get the name of this handler.
 

Method Detail

getName

public String getName()
Get the name of this handler. The handler name will be used in the object spec to specific which handler will be used to convert the string content to object.

Returns:
the handler name.

getClassName

public String getClassName()
Get the class name of the implementation class of this handler. A handler class should be inherited from jetif.Handler and have a public default constructor.

Returns:
the handler class name.
See Also:
Handler

getArgument

public String getArgument()
Get the argument to contruct this handler. The framework will determine if the handler class have a contructor which takes a string argument. This argument will be passed to that contructor to contruct a handler instance if there is such a contructor.

Returns:
the parameter string.

Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.