code
stringlengths
73
34.1k
label
stringclasses
1 value
public void setLongAttribute(String name, Long value) { ensureValue(); Attribute attribute = new LongAttribute(value); attribute.setEditable(isEditable(name)); getValue().getAllAttributes().put(name, attribute); }
java
public void setShortAttribute(String name, Short value) { ensureValue(); Attribute attribute = new ShortAttribute(value); attribute.setEditable(isEditable(name)); getValue().getAllAttributes().put(name, attribute); }
java
public boolean load() { _load(); java.util.Iterator it = this.alChildren.iterator(); while (it.hasNext()) { Object o = it.next(); if (o instanceof OjbMetaTreeNode) ((OjbMetaTreeNode)o).load(); } return true; }
java
@Deprecated @SuppressWarnings({ "rawtypes", "unchecked" }) public Map<String, PrimitiveAttribute<?>> getAttributes() { if (!isPrimitiveOnly()) { throw new UnsupportedOperationException("Primitive API not supported for nested association values"); } return (Map) attributes; }
java
@Deprecated @SuppressWarnings({ "rawtypes", "unchecked" }) public void setAttributes(Map<String, PrimitiveAttribute<?>> attributes) { if (!isPrimitiveOnly()) { throw new UnsupportedOperationException("Primitive API not supported for nested association values"); } this.attributes = (Map) attributes; }
java
public Object getAttributeValue(String attributeName) { Attribute attribute = getAllAttributes().get(attributeName); if (attribute != null) { return attribute.getValue(); } return null; }
java
public void setDateAttribute(String name, Date value) { ensureAttributes(); Attribute attribute = new DateAttribute(value); attribute.setEditable(isEditable(name)); getAllAttributes().put(name, attribute); }
java
public void setDoubleAttribute(String name, Double value) { ensureAttributes(); Attribute attribute = new DoubleAttribute(value); attribute.setEditable(isEditable(name)); getAllAttributes().put(name, attribute); }
java
public void setManyToOneAttribute(String name, AssociationValue value) { ensureAttributes(); Attribute attribute = new ManyToOneAttribute(value); attribute.setEditable(isEditable(name)); getAllAttributes().put(name, attribute); }
java
protected void addImage(PdfContext context, ImageResult imageResult) throws BadElementException, IOException { Bbox imageBounds = imageResult.getRasterImage().getBounds(); float scaleFactor = (float) (72 / getMap().getRasterResolution()); float width = (float) imageBounds.getWidth() * scaleFactor; float height ...
java
protected void addLoadError(PdfContext context, ImageException e) { Bbox imageBounds = e.getRasterImage().getBounds(); float scaleFactor = (float) (72 / getMap().getRasterResolution()); float width = (float) imageBounds.getWidth() * scaleFactor; float height = (float) imageBounds.getHeight() * scaleFactor; //...
java
public void doLocalClear() { if(log.isDebugEnabled()) log.debug("Clear materialization cache"); invokeCounter = 0; enabledReadCache = false; objectBuffer.clear(); }
java
@AfterThrowing(pointcut = "execution(* org.apache.cassandra.thrift.CassandraServer.doInsert(..))", throwing = "throwable") public void logErrorFromThrownException(final JoinPoint joinPoint, final Throwable throwable) { final String className = joinPoint.getTarget().getClass().getName(); final String...
java
public String getDependencyJsonModel() throws IOException { final Artifact artifact = DataModelFactory.createArtifact("","","","","","",""); return JsonUtils.serialize(DataModelFactory.createDependency(artifact, Scope.COMPILE)); }
java
public String getPromotionDetailsJsonModel() throws IOException { final PromotionEvaluationReport sampleReport = new PromotionEvaluationReport(); sampleReport.addMessage(String.format(TWO_PLACES, PromotionReportTranslator.UNPROMOTED_MSG, "com.acme.secure-smh:core-relay:1.2.0"), MAJOR); sampleRep...
java
public String getSearchJsonModel() throws IOException { DbSearch search = new DbSearch(); search.setArtifacts(new ArrayList<>()); search.setModules(new ArrayList<>()); return JsonUtils.serialize(search); }
java
public String getScopes() { final StringBuilder sb = new StringBuilder(); for (final Scope scope : Scope.values()) { sb.append(scope); sb.append(", "); } final String scopes = sb.toString().trim(); return scopes.substring(0, scopes.length() - 1); }
java
public String[] getReportSamples() { final Map<String, String> sampleValues = new HashMap<>(); sampleValues.put("name1", "Secure Transpiler Mars"); sampleValues.put("version1", "4.7.0"); sampleValues.put("name2", "Secure Transpiler Bounty"); sampleValues.put("version2", "5.0...
java
public static void startMockJadexAgent(String agent_name, String agent_path, MockConfiguration configuration, BeastTestCase story) { story.startAgent(agent_name, agent_path); story.sendMessageToAgent(agent_name, SFipa.INFORM, configuration); story.setExecutionTime(2000);...
java
public static String changeFirstLetterToCapital(String word) { char[] letras = word.toCharArray(); char a = letras[0]; letras[0] = Character.toUpperCase(a); return new String(letras); }
java
public static String changeFirstLetterToLowerCase(String word) { char[] letras = word.toCharArray(); char a = letras[0]; letras[0] = Character.toLowerCase(a); return new String(letras); }
java
public static String createClassName(String scenarioDescription) { String[] words = scenarioDescription.trim().split(" "); String name = ""; for (int i = 0; i < words.length; i++) { name += changeFirstLetterToCapital(words[i]); } return name; }
java
public static String createFirstLowCaseName(String scenarioDescription) { String[] words = scenarioDescription.trim().split(" "); String name = ""; for (int i = 0; i < words.length; i++) { name += changeFirstLetterToCapital(words[i]); } return changeFirstLetterToLower...
java
protected static boolean fileDoesNotExist(String file, String path, String dest_dir) { File f = new File(dest_dir); if (!f.isDirectory()) return false; String folderPath = createFolderPath(path); f = new File(f, folderPath); File javaFile = new File(f,...
java
public static File createFolder(String path, String dest_dir) throws BeastException { File f = new File(dest_dir); if (!f.isDirectory()) { try { f.mkdirs(); } catch (Exception e) { logger.severe("Problem creating directory: " + path ...
java
public static String createFolderPath(String path) { String[] pathParts = path.split("\\."); String path2 = ""; for (String part : pathParts) { if (path2.equals("")) { path2 = part; } else { path2 = path2 + File.separator ...
java
protected static BufferedReader createFileReader(String file_name) throws BeastException { try { return new BufferedReader(new FileReader(file_name)); } catch (FileNotFoundException e) { Logger logger = Logger.getLogger(MASReader.class.getName()); logger.s...
java
public static void createDotStoryFile(String scenarioName, String srcTestRootFolder, String packagePath, String givenDescription, String whenDescription, String thenDescription) throws BeastException { String[] folders = packagePath.split("."); for (String folder : fo...
java
protected static FileWriter createFileWriter(String scenarioName, String aux_package_path, String dest_dir) throws BeastException { try { return new FileWriter(new File(createFolder(aux_package_path, dest_dir), scenarioName + ".story")); } catch (IOException e...
java
protected static String createDotStoryName(String scenarioName) { String[] words = scenarioName.trim().split(" "); String result = ""; for (int i = 0; i < words.length; i++) { String word1 = words[i]; String word2 = word1.toLowerCase(); if (!word1.equals(word2...
java
private Criteria buildPrefetchCriteriaMultipleKeys(Collection ids, FieldDescriptor fields[]) { Criteria crit = new Criteria(); Iterator iter = ids.iterator(); Object[] val; Identity id; while (iter.hasNext()) { Criteria c = new Criteria(); ...
java
public static void setCurrentPersistenceBroker(PBKey key, PersistenceBrokerInternal broker) throws PBFactoryException { HashMap map = (HashMap) currentBrokerMap.get(); WeakHashMap set = null; if(map == null) { map = new HashMap(); currentBr...
java
public static void unsetCurrentPersistenceBroker(PBKey key, PersistenceBrokerInternal broker) throws PBFactoryException { HashMap map = (HashMap) currentBrokerMap.get(); WeakHashMap set = null; if(map != null) { set = (WeakHashMap) map.get(key); ...
java
public void actionPerformed(java.awt.event.ActionEvent actionEvent) { new Thread() { public void run() { final java.sql.Connection conn = new JDlgDBConnection(containingFrame, false).showAndReturnConnection(); if (conn != null) ...
java
public void setRoles(List<NamedRoleInfo> roles) { this.roles = roles; List<AuthorizationInfo> authorizations = new ArrayList<AuthorizationInfo>(); for (NamedRoleInfo role : roles) { authorizations.addAll(role.getAuthorizations()); } super.setAuthorizations(authorizations); }
java
public static double[] getTileLayerSize(TileCode code, Envelope maxExtent, double scale) { double div = Math.pow(2, code.getTileLevel()); double tileWidth = Math.ceil((scale * maxExtent.getWidth()) / div) / scale; double tileHeight = Math.ceil((scale * maxExtent.getHeight()) / div) / scale; return new double[] ...
java
public static int[] getTileScreenSize(double[] worldSize, double scale) { int screenWidth = (int) Math.round(scale * worldSize[0]); int screenHeight = (int) Math.round(scale * worldSize[1]); return new int[] { screenWidth, screenHeight }; }
java
public static Envelope getTileBounds(TileCode code, Envelope maxExtent, double scale) { double[] layerSize = getTileLayerSize(code, maxExtent, scale); if (layerSize[0] == 0) { return null; } double cX = maxExtent.getMinX() + code.getX() * layerSize[0]; double cY = maxExtent.getMinY() + code.getY() * layerS...
java
public void check(ReferenceDescriptorDef refDef, String checkLevel) throws ConstraintException { ensureClassRef(refDef, checkLevel); checkProxyPrefetchingLimit(refDef, checkLevel); }
java
@PostConstruct protected void postConstruct() { if (null == authenticationServices) { authenticationServices = new ArrayList<AuthenticationService>(); } if (!excludeDefault) { authenticationServices.add(staticAuthenticationService); } }
java
public static String getMemberName() throws XDocletException { if (getCurrentField() != null) { return getCurrentField().getName(); } else if (getCurrentMethod() != null) { return MethodTagsHandler.getPropertyNameFor(getCurrentMethod()); } else...
java
public static XClass getMemberType() throws XDocletException { if (getCurrentField() != null) { return getCurrentField().getType(); } else if (getCurrentMethod() != null) { XMethod method = getCurrentMethod(); if (MethodTagsHandler.isGetterMethod(...
java
public static int getMemberDimension() throws XDocletException { if (getCurrentField() != null) { return getCurrentField().getDimension(); } else if (getCurrentMethod() != null) { XMethod method = getCurrentMethod(); if (MethodTagsHandler.isGetter...
java
public void forAllMemberTags(String template, Properties attributes) throws XDocletException { if (getCurrentField() != null) { forAllMemberTags(template, attributes, FOR_FIELD, XDocletTagshandlerMessages.ONLY_CALL_FIELD_NOT_NULL, new String[]{"forAllMemberTags"}); } else if...
java
public void forAllMemberTagTokens(String template, Properties attributes) throws XDocletException { if (getCurrentField() != null) { forAllMemberTagTokens(template, attributes, FOR_FIELD); } else if (getCurrentMethod() != null) { forAllMemberTagTokens(template, ...
java
public void ifDoesntHaveMemberTag(String template, Properties attributes) throws XDocletException { boolean result = false; if (getCurrentField() != null) { if (!hasTag(attributes, FOR_FIELD)) { result = true; generate(template); } ...
java
public void ifHasMemberWithTag(String template, Properties attributes) throws XDocletException { ArrayList allMemberNames = new ArrayList(); HashMap allMembers = new HashMap(); boolean hasTag = false; addMembers(allMemberNames, allMembers, getCurrentClass(), null, null, null);...
java
public void ifMemberTagValueEquals(String template, Properties attributes) throws XDocletException { if (getCurrentField() != null) { if (isTagValueEqual(attributes, FOR_FIELD)) { generate(template); } } else if (getCurrentMethod() != null) { ...
java
private void addMembersInclSupertypes(Collection memberNames, HashMap members, XClass type, String tagName, String paramName, String paramValue) throws XDocletException { addMembers(memberNames, members, type, tagName, paramName, paramValue); if (type.getInterfaces() != null) { for (...
java
private void addMembers(Collection memberNames, HashMap members, XClass type, String tagName, String paramName, String paramValue) throws XDocletException { if (!type.isInterface() && (type.getFields() != null)) { XField field; for (Iterator it = type.getFields().iterator(); it...
java
private boolean checkTagAndParam(XDoc doc, String tagName, String paramName, String paramValue) { if (tagName == null) { return true; } if (!doc.hasTag(tagName)) { return false; } if (paramName == null) { return true; } ...
java
final void waitForSizeQueue(final int queueSize) { synchronized (this.queue) { while (this.queue.size() > queueSize) { try { this.queue.wait(250L); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } try { Thread.sleep(500L...
java
final void begin() { if (LogFileCompressionStrategy.existsFor(this.properties)) { final Thread thread = new Thread(this, "Log4J File Compressor"); thread.setDaemon(true); thread.start(); this.threadRef = thread; } }
java
final void end() { final Thread thread = this.threadRef; this.keepRunning.set(false); if (thread != null) { // thread.interrupt(); try { thread.join(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } this.threadRef = null; }
java
public static void addStory(File caseManager, String storyName, String testPath, String user, String feature, String benefit) throws BeastException { FileWriter caseManagerWriter; String storyClass = SystemReader.createClassName(storyName); try { BufferedReader reader = ...
java
public static void closeMASCaseManager(File caseManager) { FileWriter caseManagerWriter; try { caseManagerWriter = new FileWriter(caseManager, true); caseManagerWriter.write("}\n"); caseManagerWriter.flush(); caseManagerWriter.close(); } catch (IO...
java
public void fillTile(InternalTile tile, Envelope maxTileExtent) throws GeomajasException { List<InternalFeature> origFeatures = tile.getFeatures(); tile.setFeatures(new ArrayList<InternalFeature>()); for (InternalFeature feature : origFeatures) { if (!addTileCode(tile, maxTileExtent, feature.getGeometry()))...
java
public void clipTile(InternalTile tile, double scale, Coordinate panOrigin) throws GeomajasException { log.debug("clipTile before {}", tile); List<InternalFeature> orgFeatures = tile.getFeatures(); tile.setFeatures(new ArrayList<InternalFeature>()); Geometry maxScreenBbox = null; // The tile's maximum bounds in...
java
private boolean exceedsScreenDimensions(InternalFeature f, double scale) { Envelope env = f.getBounds(); return (env.getWidth() * scale > MAXIMUM_TILE_COORDINATE) || (env.getHeight() * scale > MAXIMUM_TILE_COORDINATE); }
java
private Envelope getMaxScreenEnvelope(InternalTile tile, Coordinate panOrigin) { int nrOfTilesX = Math.max(1, MAXIMUM_TILE_COORDINATE / tile.getScreenWidth()); int nrOfTilesY = Math.max(1, MAXIMUM_TILE_COORDINATE / tile.getScreenHeight()); double x1 = panOrigin.x - nrOfTilesX * tile.getTileWidth(); // double x...
java
private Client getClient(){ final ClientConfig cfg = new DefaultClientConfig(); cfg.getClasses().add(com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider.class); cfg.getProperties().put(ClientConfig.PROPERTY_CONNECT_TIMEOUT, timeout); return Client.create(cfg); }
java
public boolean isServerAvailable(){ final Client client = getClient(); final ClientResponse response = client.resource(serverURL).get(ClientResponse.class); if(ClientResponse.Status.OK.getStatusCode() == response.getStatus()){ return true; } if(LOG.isErrorEnabled())...
java
public void postBuildInfo(final String moduleName, final String moduleVersion, final Map<String, String> buildInfo, final String user, final String password) throws GrapesCommunicationException, AuthenticationException { final Client client = getClient(user, password); final WebResource resource = clien...
java
public void postModule(final Module module, final String user, final String password) throws GrapesCommunicationException, AuthenticationException { final Client client = getClient(user, password); final WebResource resource = client.resource(serverURL).path(RequestUtils.moduleResourcePath()); f...
java
public void deleteModule(final String name, final String version, final String user, final String password) throws GrapesCommunicationException, AuthenticationException{ final Client client = getClient(user, password); final WebResource resource = client.resource(serverURL).path(RequestUtils.getModulePa...
java
public Module getModule(final String name, final String version) throws GrapesCommunicationException { final Client client = getClient(); final WebResource resource = client.resource(serverURL).path(RequestUtils.getModulePath(name, version)); final ClientResponse response = resource.accept(Media...
java
public List<Module> getModules(final Map<String, String> filters) throws GrapesCommunicationException { final Client client = getClient(); WebResource resource = client.resource(serverURL).path(RequestUtils.getAllModulesPath()); for(final Map.Entry<String,String> queryParam: filters.entrySet()){...
java
public void promoteModule(final String name, final String version, final String user, final String password) throws GrapesCommunicationException, AuthenticationException{ final Client client = getClient(user, password); final WebResource resource = client.resource(serverURL).path(RequestUtils.promoteMod...
java
public PromotionEvaluationReport getModulePromotionReport(final String name, final String version) throws GrapesCommunicationException { return getModulePromotionReportRaw(name, version, false, PromotionEvaluationReport.class); }
java
public void postArtifact(final Artifact artifact, final String user, final String password) throws GrapesCommunicationException, AuthenticationException { final Client client = getClient(user, password); final WebResource resource = client.resource(serverURL).path(RequestUtils.artifactResourcePath()); ...
java
public void deleteArtifact(final String gavc, final String user, final String password) throws GrapesCommunicationException, AuthenticationException{ final Client client = getClient(user, password); final WebResource resource = client.resource(serverURL).path(RequestUtils.getArtifactPath(gavc)); ...
java
public List<Artifact> getArtifacts(final Boolean hasLicense) throws GrapesCommunicationException { final Client client = getClient(); final WebResource resource = client.resource(serverURL).path(RequestUtils.getArtifactsPath()); final ClientResponse response = resource.queryParam(ServerAPI.HAS_L...
java
public void postDoNotUseArtifact(final String gavc, final Boolean doNotUse, final String user, final String password) throws GrapesCommunicationException, AuthenticationException { final Client client = getClient(user, password); final WebResource resource = client.resource(serverURL).path(RequestUtils....
java
public List<String> getArtifactVersions(final String gavc) throws GrapesCommunicationException { final Client client = getClient(); final WebResource resource = client.resource(serverURL).path(RequestUtils.getArtifactVersions(gavc)); final ClientResponse response = resource .acce...
java
public void postLicense(final License license, final String user, final String password) throws GrapesCommunicationException, AuthenticationException { final Client client = getClient(user, password); final WebResource resource = client.resource(serverURL).path(RequestUtils.licenseResourcePath()); ...
java
public List<Dependency> getModuleAncestors(final String moduleName, final String moduleVersion) throws GrapesCommunicationException { final Client client = getClient(); final WebResource resource = client.resource(serverURL).path(RequestUtils.getArtifactAncestors(moduleName, moduleVersion)); fin...
java
public List<Dependency> getModuleDependencies(final String moduleName, final String moduleVersion, final Boolean fullRecursive, final Boolean corporate, final Boolean thirdParty) throws GrapesCommunicationException { final Client client = getClient(); final WebResource resource = client.resource(serverU...
java
public Organization getModuleOrganization(final String moduleName, final String moduleVersion) throws GrapesCommunicationException { final Client client = getClient(); final WebResource resource = client.resource(serverURL).path(RequestUtils.getModuleOrganizationPath(moduleName, moduleVersion)); ...
java
public void createProductDelivery(final String productLogicalName, final Delivery delivery, final String user, final String password) throws GrapesCommunicationException, AuthenticationException { final Client client = getClient(user, password); final WebResource resource = client.resource(serverURL)...
java
public Identity refreshIdentity() { Identity oldOid = getIdentity(); this.oid = getBroker().serviceIdentity().buildIdentity(myObj); return oldOid; }
java
private void prepareInitialState(boolean isNewObject) { // determine appropriate modification state ModificationState initialState; if(isNewObject) { // if object is not already persistent it must be marked as new // it must be marked as dirty because i...
java
public boolean isDeleted(Identity id) { ObjectEnvelope envelope = buffer.getByIdentity(id); return (envelope != null && envelope.needsDelete()); }
java
public void setModificationState(ModificationState newModificationState) { if(newModificationState != modificationState) { if(log.isDebugEnabled()) { log.debug("object state transition for object " + this.oid + " (" + modificatio...
java
void markReferenceElements(PersistenceBroker broker) { // these cases will be handled by ObjectEnvelopeTable#cascadingDependents() // if(getModificationState().needsInsert() || getModificationState().needsDelete()) return; Map oldImage = getBeforeImage(); Map newImage = getCur...
java
public void createContainer(String container) { ContainerController controller = this.platformContainers.get(container); if (controller == null) { // TODO make this configurable Profile p = new ProfileImpl(); p.setParameter(Profile.PLATFORM_ID, PLATFORM_ID); ...
java
public Query customizeQuery(Object anObject, PersistenceBroker aBroker, CollectionDescriptor aCod, QueryByCriteria aQuery) { return aQuery; }
java
public Iterator<?> getElements(Filter filter, int offset, int maxResultSize) throws LayerException { if (null == filter) { filter = Filter.INCLUDE; } List<Object> filteredList = new ArrayList<Object>(); try { synchronized (featuresById) { for (Object feature : featuresById.values()) { if (filter....
java
public void setTileUrls(List<String> tileUrls) { this.tileUrls = tileUrls; if (null != urlStrategy) { urlStrategy.setUrls(tileUrls); } }
java
public void postConstruct(GeoService geoService, DtoConverterService converterService) throws GeomajasException { if (null == layerInfo) { layerInfo = new RasterLayerInfo(); } layerInfo.setCrs(TiledRasterLayerService.MERCATOR); crs = geoService.getCrs2(TiledRasterLayerService.MERCATOR); layerInfo.setTileWi...
java
public synchronized void addListener(MaterializationListener listener) { if (_listeners == null) { _listeners = new ArrayList(); } // add listener only once if (!_listeners.contains(listener)) { _listeners.add(listener); } }
java
protected void beforeMaterialization() { if (_listeners != null) { MaterializationListener listener; for (int idx = _listeners.size() - 1; idx >= 0; idx--) { listener = (MaterializationListener) _listeners.get(idx); listener.beforeMaterialization(this, _id); } } }
java
protected void afterMaterialization() { if (_listeners != null) { MaterializationListener listener; // listeners may remove themselves during the afterMaterialization // callback. // thus we must iterate through the listeners vector from back to // front // to avoid index problems. ...
java
protected TemporaryBrokerWrapper getBroker() throws PBFactoryException { PersistenceBrokerInternal broker; boolean needsClose = false; if (getBrokerKey() == null) { /* arminw: if no PBKey is set we throw an exception, because we don't ...
java
public Object getRealSubject() throws PersistenceBrokerException { if (_realSubject == null) { beforeMaterialization(); _realSubject = materializeSubject(); afterMaterialization(); } return _realSubject; }
java
protected synchronized Object materializeSubject() throws PersistenceBrokerException { TemporaryBrokerWrapper tmp = getBroker(); try { Object realSubject = tmp.broker.getObjectByIdentity(_id); if (realSubject == null) { LoggerFactory.getLogger(IndirectionHandler.class).warn( "Ca...
java
public void ojbAdd(Object anObject) { DSetEntry entry = prepareEntry(anObject); entry.setPosition(elements.size()); elements.add(entry); }
java
private String generateAbbreviatedExceptionMessage(final Throwable throwable) { final StringBuilder builder = new StringBuilder(); builder.append(": "); builder.append(throwable.getClass().getCanonicalName()); builder.append(": "); builder.append(throwable.getMessage()); Throwable cause = throwable.getCau...
java
@PostConstruct protected void postConstruct() throws GeomajasException { if (null != crsDefinitions) { for (CrsInfo crsInfo : crsDefinitions.values()) { try { CoordinateReferenceSystem crs = CRS.parseWKT(crsInfo.getCrsWkt()); String code = crsInfo.getKey(); crsCache.put(code, CrsFactory.getCrs(...
java
public int getSridFromCrs(String crs) { int crsInt; if (crs.indexOf(':') != -1) { crsInt = Integer.parseInt(crs.substring(crs.indexOf(':') + 1)); } else { try { crsInt = Integer.parseInt(crs); } catch (NumberFormatException e) { crsInt = 0; } } return crsInt; }
java
public void configure(Configuration pConfig) throws ConfigurationException { if (pConfig instanceof PBPoolConfiguration) { PBPoolConfiguration conf = (PBPoolConfiguration) pConfig; this.setMaxActive(conf.getMaxActive()); this.setMaxIdle(conf.getMaxIdle()); ...
java