org.norther.tammi.root.db
Class DefaultLobFactory

java.lang.Object
  extended by org.norther.tammi.core.base.Adaptee
      extended by org.norther.tammi.core.base.DefaultObjectFactory<Object>
          extended by org.norther.tammi.root.db.DefaultLobFactory
All Implemented Interfaces:
Serializable, NotificationBroadcaster, NotificationEmitter, Manageable, MBeanDelegate, ObjectFactory<Object>, LobFactory

public class DefaultLobFactory
extends DefaultObjectFactory<Object>
implements LobFactory

A default implementation of LobFactory.

Version:
$Id: DefaultLobFactory.java,v 1.3 2009/09/30 20:16:01 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.norther.tammi.core.base.Adaptee
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS
 
Constructor Summary
DefaultLobFactory()
          Constructs a new factory.
 
Method Summary
 String getBlobAdapterClassName()
          Gets the BLOB adapter class name.
 String getBlobInstanceClassName()
          Gets the BLOB instance class name.
 String getClobAdapterClassName()
          Gets the CLOB adapter class name.
 String getClobInstanceClassName()
          Gets the CLOB instance class name.
 Object getInstance(String className, ObjectName loader, Object[] params, String[] signature)
          Gets an instance of a named class using a specified class loader.
 void setBlobAdapterClassName(String className)
          Sets the BLOB adapter class name.
 void setBlobInstanceClassName(String className)
          Sets the BLOB instance class name.
 void setClobAdapterClassName(String className)
          Sets the CLOB adapter class name.
 void setClobInstanceClassName(String className)
          Sets the CLOB instance class name.
 
Methods inherited from class org.norther.tammi.core.base.DefaultObjectFactory
getInstance, getInstance, getInstance, isLoaderSupported
 
Methods inherited from class org.norther.tammi.core.base.Adaptee
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unmanaged, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.norther.tammi.core.base.ObjectFactory
getInstance, getInstance, getInstance, isLoaderSupported
 

Constructor Detail

DefaultLobFactory

public DefaultLobFactory()
Constructs a new factory.

Method Detail

getBlobInstanceClassName

public String getBlobInstanceClassName()
Description copied from interface: LobFactory
Gets the BLOB instance class name.

Specified by:
getBlobInstanceClassName in interface LobFactory
Returns:
the BLOB class name.

setBlobInstanceClassName

public void setBlobInstanceClassName(String className)
Description copied from interface: LobFactory
Sets the BLOB instance class name.

Specified by:
setBlobInstanceClassName in interface LobFactory
Parameters:
className - the BLOB class name.

getClobInstanceClassName

public String getClobInstanceClassName()
Description copied from interface: LobFactory
Gets the CLOB instance class name.

Specified by:
getClobInstanceClassName in interface LobFactory
Returns:
the CLOB class name.

setClobInstanceClassName

public void setClobInstanceClassName(String className)
Description copied from interface: LobFactory
Sets the CLOB instance class name.

Specified by:
setClobInstanceClassName in interface LobFactory
Parameters:
className - the CLOB class name.

getBlobAdapterClassName

public String getBlobAdapterClassName()
Description copied from interface: LobFactory
Gets the BLOB adapter class name.

Specified by:
getBlobAdapterClassName in interface LobFactory
Returns:
the BLOB class name.

setBlobAdapterClassName

public void setBlobAdapterClassName(String className)
Description copied from interface: LobFactory
Sets the BLOB adapter class name.

Specified by:
setBlobAdapterClassName in interface LobFactory
Parameters:
className - the BLOB class name.

getClobAdapterClassName

public String getClobAdapterClassName()
Description copied from interface: LobFactory
Gets the CLOB adapter class name.

Specified by:
getClobAdapterClassName in interface LobFactory
Returns:
the CLOB class name.

setClobAdapterClassName

public void setClobAdapterClassName(String className)
Description copied from interface: LobFactory
Sets the CLOB adapter class name.

Specified by:
setClobAdapterClassName in interface LobFactory
Parameters:
className - the CLOB class name.

getInstance

public Object getInstance(String className,
                          ObjectName loader,
                          Object[] params,
                          String[] signature)
                   throws ConstructionException
Description copied from interface: ObjectFactory
Gets an instance of a named class using a specified class loader. Parameters for its constructor are given as an array of objects, primitive types must be wrapped with a corresponding class.

Class loaders are supported only if the isLoaderSupported method returns true. Otherwise the loader parameter is ignored.

Specified by:
getInstance in interface ObjectFactory<Object>
Overrides:
getInstance in class DefaultObjectFactory<Object>
Parameters:
className - the name of the class.
loader - the class loader.
params - an array containing the parameters of the constructor.
signature - an array containing the signature of the constructor.
Returns:
the instance.
Throws:
ConstructionException - if construction fails.


Copyright © 2004 The Norther Organization. All rights reserved.