1 23 package com.sun.enterprise.resource; 24 25 import java.util.Set ; 26 27 import javax.resource.ResourceException ; 28 29 32 public interface ResourceAllocator { 33 34 public ResourceHandle createResource() 35 throws PoolingException; 36 37 public void fillInResourceObjects(ResourceHandle resource) 38 throws PoolingException; 39 40 public void closeUserConnection(ResourceHandle resource) 41 throws PoolingException; 42 43 public void destroyResource(ResourceHandle resource) 44 throws PoolingException; 45 46 public boolean matchConnection(ResourceHandle h); 47 48 public boolean supportsReauthentication(); 49 50 public boolean isTransactional(); 51 52 public void cleanup(ResourceHandle resource) throws PoolingException; 53 54 public boolean shareableWithinComponent(); 55 56 public Object getSharedConnection(ResourceHandle h) 57 throws PoolingException; 58 59 public Set getInvalidConnections(Set connectionSet) 60 throws ResourceException ; 61 62 public boolean isConnectionValid( ResourceHandle resource ); 63 } 64 | Popular Tags |