Package org.glassfish.jdbcruntime
Class DefaultDataSource
- java.lang.Object
-
- org.glassfish.jdbcruntime.DefaultDataSource
-
- All Implemented Interfaces:
DefaultResourceProxy
,NamedNamingObjectProxy
@Service public class DefaultDataSource extends Object implements NamedNamingObjectProxy, DefaultResourceProxy
Naming Object Proxy to handle the Default Data Source. Maps to a pre-configured data source, when binding for a datasource reference is absent in the @Resource annotation.- Author:
- Shalini M
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.api.naming.DefaultResourceProxy
DefaultResourceProxy.Util
-
-
Constructor Summary
Constructors Constructor Description DefaultDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLogicalName()
String
getPhysicalName()
Object
handle(String name)
Returns the name that will be used to publish this object in the naming manager
-
-
-
Method Detail
-
handle
public Object handle(String name) throws NamingException
Description copied from interface:NamedNamingObjectProxy
Returns the name that will be used to publish this object in the naming manager- Specified by:
handle
in interfaceNamedNamingObjectProxy
- Returns:
- the name to bind
- Throws:
NamingException
-
getPhysicalName
public String getPhysicalName()
- Specified by:
getPhysicalName
in interfaceDefaultResourceProxy
-
getLogicalName
public String getLogicalName()
- Specified by:
getLogicalName
in interfaceDefaultResourceProxy
-
-