protected byte[] loadClassBytes(String className) { className = formatClassName(className); return (jarResources.getResource(className)); }
/** This method is used to find out if pool is linked to data-source or not * if pool is not linked then ping will not take changes to pool * dynamically. * @param poolInfo pool-name * @return boolean indicating whether the pool is referred or not */ private boolean isPoolReferredByResource(PoolInfo poolInfo){ ResourcesUtil resUtil = ResourcesUtil.createInstance(); return (resUtil.isPoolReferredInServerInstance(poolInfo) || resUtil.isJdbcPoolReferredInServerInstance(poolInfo)); } //END CR 6597868
private ResourcesUtil getResourcesUtil(){ if(resourcesUtil == null){ resourcesUtil = ResourcesUtil.createInstance(); } return resourcesUtil; }
public DeferredResourceConfig getDeferredResourceConfig(ResourceInfo resourceInfo) { DeferredResourceConfig resConfig = getDeferredConnectorResourceConfigs(resourceInfo); if(resConfig != null) { return resConfig; } resConfig = getDeferredJdbcResourceConfigs(resourceInfo); if(resConfig != null) { return resConfig; } resConfig = getDeferredAdminObjectConfigs(resourceInfo); return resConfig; }
public static Class loadClassFromRar(String rarName, String beanClassName) throws ConnectorRuntimeException{ String rarLocation = getRarLocation(rarName); return loadClass(rarLocation, beanClassName); }
public DeferredResourceConfig getDeferredPoolConfig(PoolInfo poolInfo) { DeferredResourceConfig resConfig = getDeferredConnectorPoolConfigs(poolInfo); if(resConfig != null) { return resConfig; } if(poolInfo == null){ return null; } resConfig = getDeferredJdbcPoolConfigs(poolInfo); return resConfig; }
/** * Checks whether the property is valid or not. */ private boolean isValid(Method setMethod, Class loadedClass) { Method getMethod = correspondingGetMethod( setMethod, loadedClass); if (getMethod != null) { return RARUtils.isValidRABeanConfigProperty(getMethod.getReturnType()); } else { return false; } }
public void initialize() { if (writer == null) { writer = getResourceAdapterLogWriter(); } }
public Set<String> getJdbcDriverClassNames(String dbVendor, String resType) { //Do not use introspection by default. return getJdbcDriverClassNames(dbVendor, resType, false); }
/** * Get jdbc database vendor names list. * @return set of common database vendor names */ public Set<String> getDatabaseVendorNames() { return driverLoader.getDatabaseVendorNames(); }
public Properties introspectJavaBean(String className, Set ddPropsSet) throws ConnectorRuntimeException { return introspectJavaBean(className, ddPropsSet, false, null); }
public static final ConnectorTimerProxy getProxy() { if (connectorTimer == null) { connectorTimer = new ConnectorTimerProxy(true); } return connectorTimer; }
/** * creates a JarResourceExtractor. It extracts all resources from a Jar into an * internal hashtable, keyed by resource names. * * @param jarFileName * a jar or zip file */ public JarResourceExtractor(String jarFileName) { init(jarFileName); }
public static synchronized ConnectorClassLoader getInstance() { if (classLoader == null) { classLoader = new ConnectorClassLoader(); } return classLoader; }
public static ResourcesUtil createInstance() { //stateless, no synchronization needed if(resourcesUtil == null){ resourcesUtil = new ResourcesUtil(); } return resourcesUtil; }
private int parseTransactionSupportString(String txSupport) { return ConnectionPoolObjectsUtils.parseTransactionSupportString(txSupport); }
public ResourcesUtil getResourcesUtil(){ if(resourcesUtil == null){ resourcesUtil = ResourcesUtil.createInstance(); } return resourcesUtil; }
/** * Used during de-serialization. */ public PrintWriterAdapter() { this(getResourceAdapterLogWriter()); }
/** * Get jdbc driver implementation class names list for the dbVendor and * resource type supplied. * @param dbVendor * @param resType * @return all jdbc driver implementation class names */ public Set<String> getJdbcDriverClassNames(String dbVendor, String resType) { return driverLoader.getJdbcDriverClassNames(dbVendor, resType); }
private ResourcesUtil getResourcesUtil(){ if(resourcesUtil == null){ resourcesUtil = ResourcesUtil.createInstance(); } return resourcesUtil; }