public abstract static class AbstractPenProvider.AbstractConstructor extends java.lang.Object implements PenProvider.Constructor
Constructor and Description |
---|
AbstractConstructor() |
Modifier and Type | Method and Description |
---|---|
boolean |
construct(PenManager penManager)
This method constructs the
PenProvider . |
protected abstract PenProvider |
constructProvider() |
PenProvider |
getConstructed() |
PenProvider.ConstructionException |
getConstructionException() |
int |
getExpectedNativeBuild() |
int |
getNativeBuild() |
int |
getNativeVersion() |
PenManager |
getPenManager() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
constructable, getName
public AbstractConstructor()
public PenManager getPenManager()
getPenManager
in interface PenProvider.Constructor
PenManager
which called the PenProvider.Constructor.construct(PenManager)
method. null
if the construct(PenManager)
has not being called.public PenProvider.ConstructionException getConstructionException()
getConstructionException
in interface PenProvider.Constructor
PenProvider
from being constructed. null
if the PenProvider
was constructed on the PenProvider.Constructor.construct(PenManager)
method call or if it has not yet being called.public PenProvider getConstructed()
getConstructed
in interface PenProvider.Constructor
PenProvider
constructed when PenProvider.Constructor.construct(PenManager)
was called. null
if it couldn't be constructed or if it has not yet being called.public final boolean construct(PenManager penManager)
PenProvider.Constructor
PenProvider
. It is called only when PenProvider.Constructor.constructable(PenManager)
returns true
. When this methods completes, it is expected that the PenProvider.Constructor.getConstructed()
method returns the PenProvider
constructed. If the PenProvider
couldn't be constructed due to some condition (e.g. the required native drivers are not present) then the PenProvider.Constructor.getConstructionException()
method is expected to return an exception describing the condition.construct
in interface PenProvider.Constructor
true
if the PenProvider
was constructed. false
if the PenProvider
couldn't be constructed.protected abstract PenProvider constructProvider() throws java.lang.Throwable
java.lang.Throwable
public int getNativeVersion()
getNativeVersion
in interface PenProvider.Constructor
-1
if the provider does not use a native library. The version is used to construct the native library name.public int getNativeBuild()
getNativeBuild
in interface PenProvider.Constructor
-1
if the provider does not use a native library.public int getExpectedNativeBuild()
getExpectedNativeBuild
in interface PenProvider.Constructor
-1
if the provider does not use a native library.