com.componio.jlicensure.client
Class JLicensureFactory

java.lang.Object
  extended by com.componio.jlicensure.client.JLicensureFactory

public class JLicensureFactory
extends java.lang.Object

Client-side factory class. Creates default implementation instances for various JLicensure classes.


Constructor Summary
JLicensureFactory()
           
 
Method Summary
static Decoder createDecoder()
          Returns a new decocer instance
static Encoder createEncoder()
          Returns a new encocer instance
static LicenseCheck createLicenseCheck()
          Returns a new instance of LicenseCheck.
static LicenseRequestBuilder createLicenseRequestBuilder()
          Returns a new instance of a LicenseRequestBuilder.
static void setProperty(java.lang.String key, java.lang.String value)
          Sets a property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JLicensureFactory

public JLicensureFactory()
Method Detail

setProperty

public static void setProperty(java.lang.String key,
                               java.lang.String value)
Sets a property. See the JLicensure client documentation for a list of valid properties.

Parameters:
key - property name
value - property value

createLicenseRequestBuilder

public static LicenseRequestBuilder createLicenseRequestBuilder()
                                                         throws java.lang.ClassNotFoundException,
                                                                java.lang.InstantiationException,
                                                                java.lang.IllegalAccessException
Returns a new instance of a LicenseRequestBuilder.

Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

createLicenseCheck

public static LicenseCheck createLicenseCheck()
                                       throws java.lang.ClassNotFoundException,
                                              java.lang.InstantiationException,
                                              java.lang.IllegalAccessException
Returns a new instance of LicenseCheck.

Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

createDecoder

public static Decoder createDecoder()
                             throws java.lang.ClassNotFoundException,
                                    java.lang.InstantiationException,
                                    java.lang.IllegalAccessException
Returns a new decocer instance

Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

createEncoder

public static Encoder createEncoder()
                             throws java.lang.ClassNotFoundException,
                                    java.lang.InstantiationException,
                                    java.lang.IllegalAccessException
Returns a new encocer instance

Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException