ozone core API

org.ozoneDB.tools.OPP.srcgen.resolve
Class ClassDescriptorUpdateMethodResolver

java.lang.Object
  extended byorg.ozoneDB.tools.OPP.srcgen.resolve.ClassDescriptorUpdateMethodResolver
All Implemented Interfaces:
MethodResolver

public class ClassDescriptorUpdateMethodResolver
extends java.lang.Object
implements MethodResolver

Resolves update methods by reading a class descriptor.

Author:
Joakim Ohlrogge To change this template use Options | File Templates.

Nested Class Summary
 
Nested classes inherited from class org.ozoneDB.tools.OPP.srcgen.MethodResolver
MethodResolver.UpdateMethodBag
 
Field Summary
private  InputStreamFactory factory
           
private  MessageWriter msgListener
           
private  java.lang.String NONELOCK
           
private  java.lang.String READLOCK
           
private  java.lang.String UPGRADELOCK
           
private  java.lang.String WRITELOCK
           
 
Constructor Summary
ClassDescriptorUpdateMethodResolver(InputStreamFactory factory, MessageWriter msgListener)
           
 
Method Summary
 void resolveMethods(java.lang.String className, MethodResolver.UpdateMethodBag result)
           
private  void searchUpdateMethods(java.lang.String className, MethodResolver.UpdateMethodBag updateMethods)
          Try to load the XML class descriptor to...
private  int stringToLockLevel(java.lang.String level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WRITELOCK

private final java.lang.String WRITELOCK
See Also:
Constant Field Values

UPGRADELOCK

private final java.lang.String UPGRADELOCK
See Also:
Constant Field Values

READLOCK

private final java.lang.String READLOCK
See Also:
Constant Field Values

NONELOCK

private final java.lang.String NONELOCK
See Also:
Constant Field Values

factory

private InputStreamFactory factory

msgListener

private MessageWriter msgListener
Constructor Detail

ClassDescriptorUpdateMethodResolver

public ClassDescriptorUpdateMethodResolver(InputStreamFactory factory,
                                           MessageWriter msgListener)
Method Detail

resolveMethods

public void resolveMethods(java.lang.String className,
                           MethodResolver.UpdateMethodBag result)
                    throws ResolverException
Specified by:
resolveMethods in interface MethodResolver
Throws:
ResolverException

searchUpdateMethods

private void searchUpdateMethods(java.lang.String className,
                                 MethodResolver.UpdateMethodBag updateMethods)
                          throws org.exolab.castor.xml.ValidationException,
                                 org.exolab.castor.xml.MarshalException,
                                 java.io.IOException
Try to load the XML class descriptor to...

Throws:
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
java.io.IOException

stringToLockLevel

private int stringToLockLevel(java.lang.String level)

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.