BEA Systems, Inc.

WebLogic Server 5.1.0 API Reference

weblogic.common
Interface T3ResourceFactory


public interface T3ResourceFactory

T3ResourceFactory is an interface that specifies how to manufacture new resources that are associated with objects.

Author:
Copyright (c) 1996-98 by WebLogic, Inc. All Rights Reserved., Copyright (c) 1999 by BEA WebXpress. All Rights Reserved.
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.
See Also:
T3ResourceDef

Method Summary
 java.lang.Object createResource()
          Creates a new instance of a resource when invoked by a resource allocator.
 void refreshResource(java.lang.Object resource)
          Refreshes an instance of a resource when invoked.
 

Method Detail

createResource

public java.lang.Object createResource()
                                throws ResourceException
Creates a new instance of a resource when invoked by a resource allocator.

Returns:
New instance of the resource created
Throws:
ResourceException - if the resource cannot be created

refreshResource

public void refreshResource(java.lang.Object resource)
                     throws ResourceException
Refreshes an instance of a resource when invoked.

Throws:
ResourceException - if the resource cannot be created

Documentation is available at
http://www.weblogic.com/docs51