
org.glassfish.concurrent.runtime.deployer.ConcurrencyManagedThreadFactoryConfig Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2022-2025 Eclipse Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package org.glassfish.concurrent.runtime.deployer;
import com.sun.enterprise.deployment.ManagedThreadFactoryDefinitionDescriptor;
import java.beans.PropertyVetoException;
import java.util.List;
import org.glassfish.concurrent.config.ManagedThreadFactory;
import org.jvnet.hk2.config.ConfigBeanProxy;
import org.jvnet.hk2.config.TransactionFailure;
import org.jvnet.hk2.config.types.Property;
/**
* @author David Matejcek
*/
public class ConcurrencyManagedThreadFactoryConfig implements ManagedThreadFactory {
private final ManagedThreadFactoryDefinitionDescriptor descriptor;
public ConcurrencyManagedThreadFactoryConfig(ManagedThreadFactoryDefinitionDescriptor descriptor) {
this.descriptor = descriptor;
}
@Override
public ConfigBeanProxy getParent() {
return null;
}
@Override
public T getParent(Class type) {
return null;
}
@Override
public T createChild(Class type) throws TransactionFailure {
return null;
}
@Override
public ConfigBeanProxy deepCopy(ConfigBeanProxy parent) throws TransactionFailure {
return null;
}
@Override
public String getObjectType() {
return "user";
}
@Override
public void setObjectType(String value) throws PropertyVetoException {
}
@Override
public String getDeploymentOrder() {
return null;
}
@Override
public void setDeploymentOrder(String value) throws PropertyVetoException {
}
@Override
public String getJndiName() {
return descriptor.getName();
}
@Override
public void setJndiName(String value) throws PropertyVetoException {
descriptor.setName(value);
}
@Override
public String getEnabled() {
return null;
}
@Override
public void setEnabled(String value) throws PropertyVetoException {
}
@Override
public String getContextInfoEnabled() {
return null;
}
@Override
public void setContextInfoEnabled(String value) throws PropertyVetoException {
}
@Override
public String getContextInfo() {
return null;
}
@Override
public void setContextInfo(String value) throws PropertyVetoException {
}
@Override
public String getDescription() {
return descriptor.getDescription();
}
@Override
public void setDescription(String value) throws PropertyVetoException {
descriptor.setDescription(value);
}
@Override
public List getProperty() {
return null;
}
@Override
public Property addProperty(Property property) {
return null;
}
@Override
public Property lookupProperty(String name) {
return null;
}
@Override
public Property removeProperty(String name) {
return null;
}
@Override
public Property removeProperty(Property removeMe) {
return null;
}
@Override
public Property getProperty(String name) {
return null;
}
@Override
public String getPropertyValue(String name) {
return null;
}
@Override
public String getPropertyValue(String name, String defaultValue) {
return null;
}
@Override
public String getThreadPriority() {
return String.valueOf(descriptor.getPriority());
}
@Override
public void setThreadPriority(String value) throws PropertyVetoException {
if (value == null) {
descriptor.setPriority(Thread.NORM_PRIORITY);
} else {
descriptor.setPriority(Integer.parseInt(value));
}
}
@Override
public String getContext() {
return descriptor.getContext();
}
@Override
public void setContext(String value) throws PropertyVetoException {
descriptor.setContext(value);
}
@Override
public String getIdentity() {
return null;
}
@Override
public String getUseVirtualThreads() {
return String.valueOf(descriptor.getUseVirtualThreads());
}
@Override
public void setUseVirtualThreads(String value) throws PropertyVetoException {
descriptor.setUseVirtualThreads(Boolean.parseBoolean(value));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy