|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.mdms.FileService.komodo.client.handlers.AbstractFileEventHandler
public abstract class AbstractFileEventHandler
Purpose:
Default implementation for some methods of the FileEventHandler.
Subclasses must implement the handleEvent() and
handleError() methods.
Copyright 2008, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge. 2008.
============================================================================ Modification History : ---------------------- Date Who What ---------------------------------------------------------------------------- 07/21/2008 Nick Initial Release ============================================================================
| Field Summary | |
|---|---|
protected String |
_classname
Class name of this handler |
protected FileEventsContext |
_context
Context reference |
protected String |
_id
Id of this handler |
protected FileEventHandlerInfo |
_metadata
|
protected String |
_name
Name of this handler |
protected Properties |
_properties
Properties for this handler |
| Constructor Summary | |
|---|---|
AbstractFileEventHandler()
|
|
| Method Summary | |
|---|---|
void |
close()
|
String |
getClassname()
Returns the description of this handler |
String |
getDescription()
Returns the description of this handler |
String |
getId()
Returns the id of this handler |
String |
getName()
Returns the name of this handler |
String |
getProperty(String propertyName)
Returns the value associated with a property name, null if not defined |
String |
getVersion()
Returns the version of this handler |
void |
initialize(FileEventsContext context,
FileEventHandlerInfo metadata)
Initializes handler from contents of a DOM element. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jpl.mipl.mdms.FileService.komodo.client.handlers.FileEventHandler |
|---|
errorOccurred, eventOccurred |
| Field Detail |
|---|
protected FileEventHandlerInfo _metadata
protected String _name
protected String _id
protected String _classname
protected Properties _properties
protected FileEventsContext _context
| Constructor Detail |
|---|
public AbstractFileEventHandler()
| Method Detail |
|---|
public void initialize(FileEventsContext context,
FileEventHandlerInfo metadata)
throws HandlerException
FileEventHandler
initialize in interface FileEventHandlerHandlerExceptionpublic String getName()
getName in interface FileEventHandlerpublic String getId()
getId in interface FileEventHandlerpublic String getClassname()
public String getDescription()
getDescription in interface FileEventHandlerpublic String getVersion()
getVersion in interface FileEventHandlerpublic String getProperty(String propertyName)
FileEventHandler
getProperty in interface FileEventHandlerpublic String toString()
toString in class Objectpublic void close()
close in interface FileEventHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||