buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public interface SessionManager<L> extends SessionIdentifierFactory {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* ... | public interface SessionManager<L> extends SessionIdentifierFactory {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* ... |
public void testBind(@RequestParam @DateTimeFormat(dateStyle=Style.MEDIUM) Date date) {
System.out.println(date);
}
}
} | public void testBind(@RequestParam @DateTimeFormat(dateStyle=ISO.MEDIUM) Date date) {
System.out.println(date);
}
}
} |
private void assertXlsOutputCorrect(byte[] output) throws Exception {
HSSFWorkbook workbook = new HSSFWorkbook(new ByteArrayInputStream(output));
HSSFSheet sheet = workbook.getSheetAt(0);
assertNotNull("Sheet should not be null", sheet);
HSSFRow row = sheet.getRow(3);
HSSFCell cell = row.getCell((short) 1);
... | private void assertXlsOutputCorrect(byte[] output) throws Exception {
HSSFWorkbook workbook = new HSSFWorkbook(new ByteArrayInputStream(output));
HSSFSheet sheet = workbook.getSheetAt(0);
assertNotNull("Sheet should not be null", sheet);
HSSFRow row = sheet.getRow(3);
HSSFCell cell = row.getCell((short) 1);
... |
protected void onRefresh() throws BeansException {
addListener(listener);
}
}
StaticApplicationContext ctx = new TestContext();
MutablePropertyValues pvs = new MutablePropertyValues();
pvs.add("applicationEventClass", TestEvent.class.getName());
// should automatically receive applicationEventPubli... | protected void onRefresh() throws BeansException {
addApplicationListener(listener);
}
}
StaticApplicationContext ctx = new TestContext();
MutablePropertyValues pvs = new MutablePropertyValues();
pvs.add("applicationEventClass", TestEvent.class.getName());
// should automatically receive applicatio... |
public void testPrototypeScriptedBean() throws Exception {
GenericApplicationContext ctx = new GenericApplicationContext();
ctx.registerBeanDefinition("messenger", BeanDefinitionBuilder.rootBeanDefinition(StubMessenger.class).getBeanDefinition());
BeanDefinitionBuilder scriptedBeanBuilder = BeanDefinitionBuilde... | public void testPrototypeScriptedBean() throws Exception {
GenericApplicationContext ctx = new GenericApplicationContext();
ctx.registerBeanDefinition("messenger", BeanDefinitionBuilder.rootBeanDefinition(StubMessenger.class).getBeanDefinition());
BeanDefinitionBuilder scriptedBeanBuilder = BeanDefinitionBuilde... |
public void convertArrayToObjectAssignableTargetType() {
Long[] array = new Long[] { 3L };
Long[] result = (Long[]) conversionService.convert(array, Object.class);
assertEquals(array, result);
}
| public void convertArrayToObjectAssignableTargetType() {
Long[] array = new Long[] { 3L };
Long[] result = (Long[]) conversionService.convert(array, Object.class);
assertArrayEquals(array, result);
}
|
ServiceBuilder<SessionManagerFactory> buildDeploymentDependency(ServiceTarget target, ServiceName name, ServiceName deploymentServiceName, Module module, JBossWebMetaData metaData);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @auth... | ServiceBuilder<SessionManagerFactory> buildDeploymentDependency(ServiceTarget target, ServiceName name, ServiceName deploymentServiceName, Module module, JBossWebMetaData metaData);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @auth... |
public long skip(long n) throws IOException {
int skipped = 0;
while (n > 0 && this.cbuf.hasRemaining()) {
this.cbuf.get();
n--;
skipped++;
}
return skipped;
}
| public long skip(long n) throws IOException {
long skipped = 0;
while (n > 0 && this.cbuf.hasRemaining()) {
this.cbuf.get();
n--;
skipped++;
}
return skipped;
}
|
public static void main(String[] args) throws Exception {
LinearDRPCTopologyBuilder builder = new LinearDRPCTopologyBuilder("exclamation");
builder.addBolt(new ExclaimBolt(), 3);
Config conf = new Config();
if (args == null || args.length == 0) {
LocalDRPC drpc = new LocalDRPC();
LocalCl... | public static void main(String[] args) throws Exception {
LinearDRPCTopologyBuilder builder = new LinearDRPCTopologyBuilder("exclamation");
builder.addBolt(new ExclaimBolt(), 3);
Config conf = new Config();
if (args == null || args.length == 0) {
LocalDRPC drpc = new LocalDRPC();
LocalCl... |
public static void main(String[] args) throws Exception {
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("word", new TestWordSpout(), 10);
builder.setBolt("exclaim1", new ExclamationBolt(), 3).shuffleGrouping("word");
builder.setBolt("exclaim2", new ExclamationBolt(), 2).shuffleGro... | public static void main(String[] args) throws Exception {
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("word", new TestWordSpout(), 10);
builder.setBolt("exclaim1", new ExclamationBolt(), 3).shuffleGrouping("word");
builder.setBolt("exclaim2", new ExclamationBolt(), 2).shuffleGro... |
public static void main(String[] args) throws Exception {
LinearDRPCTopologyBuilder builder = construct();
Config conf = new Config();
if (args == null || args.length == 0) {
conf.setMaxTaskParallelism(3);
LocalDRPC drpc = new LocalDRPC();
LocalCluster cluster = new LocalCluster();
... | public static void main(String[] args) throws Exception {
LinearDRPCTopologyBuilder builder = construct();
Config conf = new Config();
if (args == null || args.length == 0) {
conf.setMaxTaskParallelism(3);
LocalDRPC drpc = new LocalDRPC();
LocalCluster cluster = new LocalCluster();
... |
public static void main(String[] args) throws Exception {
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("spout", new RandomSentenceSpout(), 5);
builder.setBolt("split", new SplitSentence(), 8).shuffleGrouping("spout");
builder.setBolt("count", new WordCount(), 12).fieldsGrouping... | public static void main(String[] args) throws Exception {
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("spout", new RandomSentenceSpout(), 5);
builder.setBolt("split", new SplitSentence(), 8).shuffleGrouping("spout");
builder.setBolt("count", new WordCount(), 12).fieldsGrouping... |
public static void main(String[] args) throws Exception {
Config conf = new Config();
conf.setMaxSpoutPending(20);
if (args.length == 0) {
LocalDRPC drpc = new LocalDRPC();
LocalCluster cluster = new LocalCluster();
cluster.submitTopology("wordCounter", conf, buildTopology(drpc));
... | public static void main(String[] args) throws Exception {
Config conf = new Config();
conf.setMaxSpoutPending(20);
if (args.length == 0) {
LocalDRPC drpc = new LocalDRPC();
LocalCluster cluster = new LocalCluster();
cluster.submitTopology("wordCounter", conf, buildTopology(drpc));
... |
public void shutdown() throws Exception {
simpleConsumer.close();
broker.shutdown();
server.stop();
}
| public void shutdown() throws Exception {
simpleConsumer.close();
broker.shutdown();
server.close();
}
|
public void validate(String topologyName, Map topologyConf, StormTopology topology, Map NimbusConf) throws InvalidTopologyException {
}
} | public void validate(String topologyName, Map topologyConf, StormTopology topology) throws InvalidTopologyException {
}
} |
public State makeState(Map conf, IMetricsContext metrics, int partitionIndex, int numPartitions) {
return new LRUMemoryMapState(_maxSize, _id);
}
}
| public State makeState(Map conf, IMetricsContext metrics, int partitionIndex, int numPartitions) {
return new LRUMemoryMapState(_maxSize, _id + partitionIndex);
}
}
|
public State makeState(Map conf, IMetricsContext metrics, int partitionIndex, int numPartitions) {
return new MemoryMapState(_id);
}
}
| public State makeState(Map conf, IMetricsContext metrics, int partitionIndex, int numPartitions) {
return new MemoryMapState(_id + partitionIndex);
}
}
|
public Queue<E> getCollection() {
return (Queue<E>) super.getCollection();
}
} | public Queue<E> getCollection() {
return super.getCollection();
}
} |
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final Module module = deploymentUnit.getAttachment(MODULE);
if (module == null) {
// Nothing to do
... | public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final Module module = deploymentUnit.getAttachment(MODULE);
if (module == null) {
// Nothing to do
... |
protected AttributeDefinition(String name, String xmlName, final ModelNode defaultValue, final ModelType type,
final boolean allowNull, final boolean allowExpression, final MeasurementUnit measurementUnit,
final ParameterCorrector valueCorrector, f... | protected AttributeDefinition(String name, String xmlName, final ModelNode defaultValue, final ModelType type,
final boolean allowNull, final boolean allowExpression, final MeasurementUnit measurementUnit,
final ParameterCorrector valueCorrector, f... |
public void testParameters() throws Exception {
double coefficients[] = { -3.0, 5.0, 2.0 };
PolynomialFunction f = new PolynomialFunction(coefficients);
UnivariateRealSolver solver = new LaguerreSolver(f);
try {
// bad interval
solver.solve(1, -1);
... | public void testParameters() throws Exception {
double coefficients[] = { -3.0, 5.0, 2.0 };
PolynomialFunction f = new PolynomialFunction(coefficients);
UnivariateRealSolver solver = new LaguerreSolver(f);
try {
// bad interval
solver.solve(1, -1);
... |
public void testNextInt() {
try {
int x = testGenerator.nextInt(-1);
fail("IllegalArgumentException expected");
} catch (IllegalArgumentException ex) {
;
}
Frequency freq = new Frequency();
int value = 0;
for (int i=0; i<smallSample... | public void testNextInt() {
try {
testGenerator.nextInt(-1);
fail("IllegalArgumentException expected");
} catch (IllegalArgumentException ex) {
;
}
Frequency freq = new Frequency();
int value = 0;
for (int i=0; i<smallSampleSize; i+... |
private AddPropertiesUser(ConsoleWrapper console, final boolean management, final String user, final String password, final String realm) {
StateValues stateValues = new StateValues();
stateValues.setJbossHome(System.getenv("JBOSS_HOME"));
final Interactiveness howInteractive;
boole... | private AddPropertiesUser(ConsoleWrapper console, final boolean management, final String user, final String password, final String realm) {
StateValues stateValues = new StateValues();
stateValues.setJbossHome(System.getenv("JBOSS_HOME"));
final Interactiveness howInteractive;
boole... |
public void destroy() throws Exception {
manager.undeploy();
ServletContainer container = getServerInjection().getValue().getServletContainer().getValue().getServletContainer();
container.removeDeployment(deploymentInfo.getDeploymentName());
}
}
| public void destroy() throws Exception {
manager.undeploy();
ServletContainer container = getServerInjection().getValue().getServletContainer().getValue().getServletContainer();
container.removeDeployment(deploymentInfo);
}
}
|
public Binding getNestedBinding(String property) {
return bindingContext.getBinding(property);
}
| public Binding getNestedBinding(String property) {
return bindingContext.getNestedBinding(property);
}
|
public ServerGroupDeploymentElement(XMLExtendedStreamReader reader, final RefResolver<String, DeploymentRepositoryElement> repositoryResolver) throws XMLStreamException {
super();
if (repositoryResolver == null) {
throw new IllegalArgumentException("repositoryResolver is null");
... | public ServerGroupDeploymentElement(XMLExtendedStreamReader reader, final RefResolver<String, DeploymentRepositoryElement> repositoryResolver) throws XMLStreamException {
super();
if (repositoryResolver == null) {
throw new IllegalArgumentException("repositoryResolver is null");
... |
private synchronized ContainerStateChangeReport createContainerStateChangeReport() {
final Map<ServiceName, Set<ServiceName>> missingDeps = new HashMap<ServiceName, Set<ServiceName>>();
for (ServiceController<?> controller : servicesWithMissingDeps) {
for (ServiceName missing : controll... | private synchronized ContainerStateChangeReport createContainerStateChangeReport() {
final Map<ServiceName, Set<ServiceName>> missingDeps = new HashMap<ServiceName, Set<ServiceName>>();
for (ServiceController<?> controller : servicesWithMissingDeps) {
for (ServiceName missing : controll... |
public static void initOperations(final ManagementResourceRegistration root,
final ContentRepository contentRepository,
final ExtensibleConfigurationPersister extensibleConfigurationPersister,
final Ser... | public static void initOperations(final ManagementResourceRegistration root,
final ContentRepository contentRepository,
final ExtensibleConfigurationPersister extensibleConfigurationPersister,
final Ser... |
protected boolean requiresRuntime(OperationContext context) {
return true;
}
| protected boolean requiresRuntime(OperationContext context) {
return context.getProcessType().isServer();
}
|
protected void initializeSocketBindingsModel(Resource rootResource, ManagementResourceRegistration rootRegistration) {
if (socketBindings.size() == 0 && outboundSocketBindings.isEmpty()) {
return;
}
rootResource.getModel().get(INTERFACE);
rootResource.getModel().get(SOCK... | protected void initializeSocketBindingsModel(Resource rootResource, ManagementResourceRegistration rootRegistration) {
if (socketBindings.size() == 0 && outboundSocketBindings.isEmpty()) {
return;
}
rootResource.getModel().get(INTERFACE);
rootResource.getModel().get(SOCK... |
public void testConstructor() {
assertNotNull(new DateFormatUtils());
Constructor[] cons = DateFormatUtils.class.getDeclaredConstructors();
assertEquals(1, cons.length);
assertEquals(true, Modifier.isPublic(cons[0].getModifiers()));
assertEquals(true, Modifier.isPublic(DateFo... | public void testConstructor() {
assertNotNull(new DateFormatUtils());
Constructor<?>[] cons = DateFormatUtils.class.getDeclaredConstructors();
assertEquals(1, cons.length);
assertEquals(true, Modifier.isPublic(cons[0].getModifiers()));
assertEquals(true, Modifier.isPublic(Dat... |
public Object update(Object stored) {
Object ret = stored;
for(TridentTuple t: tuples) {
ret = this.agg.reduce(ret, t);
}
return ret;
}
| public Object update(Object stored) {
Object ret = (stored == null) ? this.agg.init() : stored;
for(TridentTuple t: tuples) {
ret = this.agg.reduce(ret, t);
}
return ret;
}
|
public ServerEnvironment(Properties props, InputStream stdin, PrintStream stdout, PrintStream stderr,
String processName, InetAddress processManagerAddress, Integer processManagerPort, InetAddress serverManagerAddress, Integer serverManagerPort, boolean standalone) {
this.standalone = standalone... | public ServerEnvironment(Properties props, InputStream stdin, PrintStream stdout, PrintStream stderr,
String processName, InetAddress processManagerAddress, Integer processManagerPort, InetAddress serverManagerAddress, Integer serverManagerPort, boolean standalone) {
this.standalone = standalone... |
public static String normalize(String filename, boolean unixSeparator) {
char separator = (unixSeparator ? UNIX_SEPARATOR : WINDOWS_SEPARATOR);
return doNormalize(filename, separator, true);
}
| public static String normalize(String filename, boolean unixSeparator) {
char separator = unixSeparator ? UNIX_SEPARATOR : WINDOWS_SEPARATOR;
return doNormalize(filename, separator, true);
}
|
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ConnectorXmlDescriptor connectorXmlDescriptor = deploymentUnit.getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY);
... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ConnectorXmlDescriptor connectorXmlDescriptor = deploymentUnit.getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY);
... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final ConnectorXmlDescriptor connectorXmlDescriptor = phaseContext.getDeploymentUnit().getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY);
if(connectorXmlDescriptor == null) {
return; //... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final ConnectorXmlDescriptor connectorXmlDescriptor = phaseContext.getDeploymentUnit().getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY);
if(connectorXmlDescriptor == null) {
return; //... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ConnectorXmlDescriptor connectorXmlDescriptor = deploymentUnit.getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY);
... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ConnectorXmlDescriptor connectorXmlDescriptor = deploymentUnit.getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY);
... |
protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler,
final P param) {
final ServiceTarget serviceTarget = updateContext.getServiceTarget();
WorkManager wm = new WorkManagerImpl();
final WorkManagerService wm... | protected <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler,
final P param) {
final ServiceTarget serviceTarget = updateContext.getServiceTarget();
WorkManager wm = new WorkManagerImpl();
final WorkManagerService wm... |
protected <P> void applyRemove(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) {
final ServiceRegistry serviceRegistry = updateContext.getServiceRegistry();
final ServiceController<?> tmController = serviceRegistry.getService(TxnServices.JB... | protected <P> void applyRemove(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> resultHandler, final P param) {
final ServiceRegistry serviceRegistry = updateContext.getServiceRegistry();
final ServiceController<?> tmController = serviceRegistry.getService(TxnServices.JB... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
ServiceRegistry registry = context.getServiceRegistry(false);
final ServiceName ... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
ServiceRegistry registry = context.getServiceRegistry(false);
final ServiceName ... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
... |
public T convert(String source) throws Exception {
return Enum.valueOf(enumType, source);
}
}
| public T convert(String source) throws Exception {
return (T) Enum.valueOf(enumType, source);
}
}
|
public String toString() {
StringBuilder str = new StringBuilder();
str.append("TypedValue: ").append(this.value).append(" of type ").append(this.getTypeDescriptor().asString());
return str.toString();
}
| public String toString() {
StringBuilder str = new StringBuilder();
str.append("TypedValue: ").append(this.value).append(" of ").append(this.getTypeDescriptor());
return str.toString();
}
|
public String toString() {
return getLocalName();
}
}
enum Element {
// must be first
UNKNOWN(null),
CONNECTION("connection"),
DATASOURCE("datasource"),
| public String toString() {
return getLocalName();
}
}
enum Element {
// must be first
UNKNOWN(null),
CONNECTIONFACTORY("connectionFactory"),
DATASOURCE("datasource"),
|
public static final String SUBSYSTEM_XML =
"<subsystem xmlns='" + Namespace.CURRENT.getUriString() + "'>" +
"<connection jndi-name='java:ConnectionFactory'/>" +
"<datasource jndi-name='java:DataSource'/>" +
| public static final String SUBSYSTEM_XML =
"<subsystem xmlns='" + Namespace.CURRENT.getUriString() + "'>" +
"<connectionFactory jndi-name='java:ConnectionFactory'/>" +
"<datasource jndi-name='java:DataSource'/>" +
|
private void addDependency(ModuleSpecification moduleSpecification, ModuleLoader moduleLoader,
DeploymentUnit deploymentUnit, ModuleIdentifier... moduleIdentifiers) {
for ( ModuleIdentifier moduleIdentifier : moduleIdentifiers) {
moduleSpecification.addSystemDepend... | private void addDependency(ModuleSpecification moduleSpecification, ModuleLoader moduleLoader,
DeploymentUnit deploymentUnit, ModuleIdentifier... moduleIdentifiers) {
for ( ModuleIdentifier moduleIdentifier : moduleIdentifiers) {
moduleSpecification.addSystemDepend... |
@Message(id = 10500, value = "Unable to register recovery: %s (%s)")
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* T... | @Message(id = 10500, value = "Unable to register recovery: %s (%s)")
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* T... |
private void delay() {
try {
Thread.sleep( 100 );
}
catch( InterruptedException e ) {
}
}
| private void delay() {
try {
Thread.sleep( 200 );
}
catch( InterruptedException e ) {
}
}
|
class SocketBindingTransformers {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redis... | class SocketBindingTransformers {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redis... |
public SessionObjectReference resolveEjb(EjbDescriptor<?> ejbDescriptor) {
if (ejbDescriptor.isStateful()) {
return new StatefulSessionObjectReferenceImpl((EjbDescriptorImpl<?>) ejbDescriptor, serviceRegistry);
} else {
return new SessionObjectReferenceImpl((EjbDescriptorImpl... | public SessionObjectReference resolveEjb(EjbDescriptor<?> ejbDescriptor) {
if (ejbDescriptor.isStateful()) {
return new StatefulSessionObjectReferenceImpl((EjbDescriptorImpl<?>) ejbDescriptor);
} else {
return new SessionObjectReferenceImpl((EjbDescriptorImpl<?>) ejbDescripto... |
public void initializeConnection(Socket socket) throws IOException, InitialSocketRequestException {
InputStream in = socket.getInputStream();
StringBuilder sb = new StringBuilder();
//TODO Timeout on the read?
Status status = StreamUtils.readWord(in, sb);
... | public void initializeConnection(Socket socket) throws IOException, InitialSocketRequestException {
InputStream in = socket.getInputStream();
StringBuilder sb = new StringBuilder();
//TODO Timeout on the read?
Status status = StreamUtils.readWord(in, sb);
... |
private void parseServer(final XMLExtendedStreamReader reader, final ModelNode parentAddress, final List<ModelNode> list,
final Set<String> serverNames) throws XMLStreamException {
// Handle attributes
String name = null;
String group = null;
Boolean start = null;
... | private void parseServer(final XMLExtendedStreamReader reader, final ModelNode parentAddress, final List<ModelNode> list,
final Set<String> serverNames) throws XMLStreamException {
// Handle attributes
String name = null;
String group = null;
Boolean start = null;
... |
public interface RequestCondition {
/*
* Copyright 2002-2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | public interface RequestCondition {
/*
* Copyright 2002-2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... |
public static String encodeHost(String host, String encoding) throws UnsupportedEncodingException {
return HierarchicalUriComponents
.encodeUriComponent(host, encoding, HierarchicalUriComponents.Type.HOST_IPV4);
}
| public static String encodeHost(String host, String encoding) throws UnsupportedEncodingException {
return HierarchicalUriComponents
.encodeUriComponent(host, encoding, HierarchicalUriComponents.Type.HOST);
}
|
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
// We get the model as a list of resources descriptions
final ModelNode domainModel = operation.get(DOMAIN_MODEL);
final ModelNode startRoot = Resource.Tools.readModel(context.readResourceFro... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
// We get the model as a list of resources descriptions
final ModelNode domainModel = operation.get(DOMAIN_MODEL);
final ModelNode startRoot = Resource.Tools.readModel(context.readResourceFro... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
String socketBindingGroupName = PathAddress.pathAddress(operation.get(OP_ADDR)).getLastElement().getValue();
//Find all the server groups using the socket binding... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
String socketBindingGroupName = PathAddress.pathAddress(operation.get(OP_ADDR)).getLastElement().getValue();
//Find all the server groups using the socket binding... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
context.getResult().set(info.getLocalHostName());
context.completeStep();
}
| public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
context.getResult().set(info.getLocalHostName());
context.stepCompleted();
}
|
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
context.getResult().set(master ? DOMAIN_CONTROLLER_TYPE : HOST_CONTROLLER_TYPE);
context.completeStep();
}
| public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
context.getResult().set(master ? DOMAIN_CONTROLLER_TYPE : HOST_CONTROLLER_TYPE);
context.stepCompleted();
}
|
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
// Acquire the lock
context.acquireControllerLock();
// Transform the model
final Resource untransformedRoot = context.readResource(PathAddress.EMPTY_ADDRESS,true);
final Reso... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
// Acquire the lock
context.acquireControllerLock();
// Transform the model
final Resource untransformedRoot = context.readResource(PathAddress.EMPTY_ADDRESS,true);
final Reso... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
// Just validate. The real work happens on the servers
ResolveExpressionHandler.EXPRESSION.validateOperation(operation);
context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
// Just validate. The real work happens on the servers
ResolveExpressionHandler.EXPRESSION.validateOperation(operation);
context.stepCompleted();
}
|
protected void modelChanged(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue,
ModelNode currentValue) throws OperationFailedException {
if (newValue.equals(currentValue)) {
//Set an attachment to avoid propagation to the servers, we don't want t... | protected void modelChanged(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue,
ModelNode currentValue) throws OperationFailedException {
if (newValue.equals(currentValue)) {
//Set an attachment to avoid propagation to the servers, we don't want t... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
// Wipe out any result that may have accumulated from previous handlers
context.getResult().set(new ModelNode());
final boolean isDomain = isDomainOperation(operation);
if (!collect... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
// Wipe out any result that may have accumulated from previous handlers
context.getResult().set(new ModelNode());
final boolean isDomain = isDomainOperation(operation);
if (!collect... |
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
if (context.hasFailureDescription()) {
// abort
context.setRollbackOnly();
context.completeStep();
return;
}
// Confirm no host f... | public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
if (context.hasFailureDescription()) {
// abort
context.setRollbackOnly();
context.stepCompleted();
return;
}
// Confirm no host ... |
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
if (context.hasFailureDescription()) {
// abort
context.setRollbackOnly();
context.completeStep();
return;
}
final Set<String> ou... | public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
if (context.hasFailureDescription()) {
// abort
context.setRollbackOnly();
context.stepCompleted();
return;
}
final Set<String> o... |
private final IgnoredDomainResourceRegistry ignoredDomainResourceRegistry;
OperationSlaveStepHandler(final LocalHostControllerInfo localHostControllerInfo, Map<String, ProxyController> serverProxies,
IgnoredDomainResourceRegistry ignoredDomainResourceRegistry) {
this.local... | private final IgnoredDomainResourceRegistry ignoredDomainResourceRegistry;
OperationSlaveStepHandler(final LocalHostControllerInfo localHostControllerInfo, Map<String, ProxyController> serverProxies,
IgnoredDomainResourceRegistry ignoredDomainResourceRegistry) {
this.local... |
private void executeDirect(OperationContext context, ModelNode operation) throws OperationFailedException {
if (HOST_CONTROLLER_LOGGER.isTraceEnabled()) {
HOST_CONTROLLER_LOGGER.tracef("%s executing direct", getClass().getSimpleName());
}
final String operationName = operation.r... | private void executeDirect(OperationContext context, ModelNode operation) throws OperationFailedException {
if (HOST_CONTROLLER_LOGGER.isTraceEnabled()) {
HOST_CONTROLLER_LOGGER.tracef("%s executing direct", getClass().getSimpleName());
}
final String operationName = operation.r... |
public Map<Set<ServerIdentity>, ModelNode> getServerOperations(ModelNode domainOp, PathAddress address) {
Map<Set<ServerIdentity>, ModelNode> ops = ServerOperationsResolverHandler.this.getServerOperations(context, domainOp, address, pushToServers);
fo... | public Map<Set<ServerIdentity>, ModelNode> getServerOperations(ModelNode domainOp, PathAddress address) {
Map<Set<ServerIdentity>, ModelNode> ops = ServerOperationsResolverHandler.this.getServerOperations(context, domainOp, address, pushToServers);
fo... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
if (contentRepository != null) {
try {
InputStream is = getContentInputStream(context, operation);
try {
byte[] hash = contentRepository.addCo... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
if (contentRepository != null) {
try {
InputStream is = getContentInputStream(context, operation);
try {
byte[] hash = contentRepository.addCo... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final Resource resource = context.createResource(PathAddress.EMPTY_ADDRESS);
ModelNode newModel = resource.getModel();
for (AttributeDefinition def : DOMAIN_ADD_ATTRIBUTES) {
if ... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final Resource resource = context.createResource(PathAddress.EMPTY_ADDRESS);
ModelNode newModel = resource.getModel();
for (AttributeDefinition def : DOMAIN_ADD_ATTRIBUTES) {
if ... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
// We do nothing. This operation is really handled at the server level.
context.completeStep();
}
| public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
// We do nothing. This operation is really handled at the server level.
context.stepCompleted();
}
|
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
validator.validateParameter(NAME, operation.get(NAME));
validator.validateParameter(VALUE, operation.get(VALUE));
final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_A... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
validator.validateParameter(NAME, operation.get(NAME));
validator.validateParameter(VALUE, operation.get(VALUE));
final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_A... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
validator.validateParameter(NAME, operation.get(NAME));
final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS);
final ModelNode model = resource.getModel();
... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
validator.validateParameter(NAME, operation.get(NAME));
final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS);
final ModelNode model = resource.getModel();
... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
validator.validateParameter(JvmAttributes.JVM_OPTION, operation.get(JvmAttributes.JVM_OPTION));
final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS);
final Mod... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
validator.validateParameter(JvmAttributes.JVM_OPTION, operation.get(JvmAttributes.JVM_OPTION));
final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS);
final Mod... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
validator.validateParameter(JvmAttributes.JVM_OPTION, operation.get(JvmAttributes.JVM_OPTION));
final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS);
final Mod... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
validator.validateParameter(JvmAttributes.JVM_OPTION, operation.get(JvmAttributes.JVM_OPTION));
final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS);
final Mod... |
public void execute(OperationContext context, ModelNode operation) {
if (!context.isBooting()) {
throw MESSAGES.invocationNotAllowedAfterBoot(OPERATION_NAME);
}
final String hostName = operation.require(NAME).asString();
// Set up the host model registrations
M... | public void execute(OperationContext context, ModelNode operation) {
if (!context.isBooting()) {
throw MESSAGES.invocationNotAllowedAfterBoot(OPERATION_NAME);
}
final String hostName = operation.require(NAME).asString();
// Set up the host model registrations
M... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS);
final ModelNode model = resource.getModel();
model.get(DOMAIN_CONTROLLER).setEmptyObject();
context... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS);
final ModelNode model = resource.getModel();
model.get(DOMAIN_CONTROLLER).setEmptyObject();
context... |
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
final PathAddress serverAddress = PathAddress.EMPTY_ADDRESS.append(PathElement.pathElement(SERVER, serverName));
final ProxyController controller = context.getReso... | public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
final PathAddress serverAddress = PathAddress.EMPTY_ADDRESS.append(PathElement.pathElement(SERVER, serverName));
final ProxyController controller = context.getReso... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ServerStatus origStatus = serverInventory.determineServerStatus(serverName);
if (origStatus != ServerStatus.STARTED) {
throw new OperationFailedExcep... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ServerStatus origStatus = serverInventory.determineServerStatus(serverName);
if (origStatus != ServerStatus.STARTED) {
throw new OperationFailedExcep... |
protected void modelChanged(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue,
ModelNode currentValue) throws OperationFailedException {
if (newValue.equals(currentValue)) {
//Set an attachment to avoid propagation to the servers, we don't want t... | protected void modelChanged(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue,
ModelNode currentValue) throws OperationFailedException {
if (newValue.equals(currentValue)) {
//Set an attachment to avoid propagation to the servers, we don't want t... |
public void handleRollback(OperationContext context, ModelNode operation) {
if (origStatus != ServerStatus.STARTED && origStatus != ServerStatus.STARTING) {
serverInventory.stopServer(serverName, -1);
}
}... | public void handleRollback(OperationContext context, ModelNode operation) {
if (origStatus != ServerStatus.STARTED && origStatus != ServerStatus.STARTING) {
serverInventory.stopServer(serverName, -1);
}
}... |
public Object encode(Object object) throws EncoderException {
try {
byte[] byteArray = object instanceof String ? ((String) object).getBytes() : (byte[]) object;
return encodeHex(byteArray);
} catch (ClassCastException e) {
throw new EncoderException(e.getMess... | public Object encode(Object object) throws EncoderException {
try {
byte[] byteArray = object instanceof String ? ((String) object).getBytes() : (byte[]) object;
return encodeHex(byteArray);
} catch (ClassCastException e) {
throw new EncoderException(e.getMess... |
public String encode(final String value, final String charset) throws EncoderException {
if (value == null) {
return null;
}
try {
return encodeText(value, charset);
} catch (UnsupportedEncodingException e) {
throw new EncoderException(e.getMessage... | public String encode(final String value, final String charset) throws EncoderException {
if (value == null) {
return null;
}
try {
return encodeText(value, charset);
} catch (UnsupportedEncodingException e) {
throw new EncoderException(e.getMessage... |
public String encode(final String pString, final String charset) throws EncoderException {
if (pString == null) {
return null;
}
try {
return encodeText(pString, charset);
} catch (UnsupportedEncodingException e) {
throw new EncoderException(e.getM... | public String encode(final String pString, final String charset) throws EncoderException {
if (pString == null) {
return null;
}
try {
return encodeText(pString, charset);
} catch (UnsupportedEncodingException e) {
throw new EncoderException(e.getM... |
public String encode(String pString) throws EncoderException {
if (pString == null) {
return null;
}
try {
return encode(pString, getDefaultCharset());
} catch (UnsupportedEncodingException e) {
throw new EncoderException(e.getMessage());
}... | public String encode(String pString) throws EncoderException {
if (pString == null) {
return null;
}
try {
return encode(pString, getDefaultCharset());
} catch (UnsupportedEncodingException e) {
throw new EncoderException(e.getMessage(), e);
... |
interface Protocol {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it an... | interface Protocol {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it an... |
private TypedValue executeFunctionJLRMethod(ExpressionState state, Method method) throws EvaluationException {
Object[] functionArgs = getArguments(state);
if (!method.isVarArgs() && method.getParameterTypes().length != functionArgs.length) {
throw new SpelEvaluationException(SpelMessage.INCORRECT_NUMBER_OF_AR... | private TypedValue executeFunctionJLRMethod(ExpressionState state, Method method) throws EvaluationException {
Object[] functionArgs = getArguments(state);
if (!method.isVarArgs() && method.getParameterTypes().length != functionArgs.length) {
throw new SpelEvaluationException(SpelMessage.INCORRECT_NUMBER_OF_AR... |
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException {
TypedValue op = state.getActiveContextObject();
Object operand = op.getValue();
SpelNodeImpl selectionCriteria = children[0];
if (operand instanceof Map) {
Map<?, ?> mapdata = (Map<?, ?>) operand;
// TODO don't lose... | public TypedValue getValueInternal(ExpressionState state) throws EvaluationException {
TypedValue op = state.getActiveContextObject();
Object operand = op.getValue();
SpelNodeImpl selectionCriteria = children[0];
if (operand instanceof Map) {
Map<?, ?> mapdata = (Map<?, ?>) operand;
// TODO don't lose... |
public static int getLevenshteinDistance(CharSequence s, CharSequence t, int threshold) {
if(s == null || t == null) {
throw new IllegalArgumentException("String must not be null");
}
if(threshold < 0) {
throw new IllegalArgumentException("Threshold must not be negati... | public static int getLevenshteinDistance(CharSequence s, CharSequence t, int threshold) {
if(s == null || t == null) {
throw new IllegalArgumentException("Strings must not be null");
}
if(threshold < 0) {
throw new IllegalArgumentException("Threshold must not be negat... |
protected void performRuntime(NewOperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) {
final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
final String name = address.getLa... | protected void performRuntime(NewOperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) {
final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
final String name = address.getLa... |
public static List<Rule> instance(NameType nameType, RuleType rt, Set<String> langs) {
if (langs.size() == 1) {
return instance(nameType, rt, langs.iterator().next());
} else {
return instance(nameType, rt, "any");
}
}
| public static List<Rule> instance(NameType nameType, RuleType rt, Set<String> langs) {
if (langs.size() == 1) {
return instance(nameType, rt, langs.iterator().next());
} else {
return instance(nameType, rt, Languages.ANY);
}
}
|
protected RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType) {
RequestMapping methodAnnot = AnnotationUtils.findAnnotation(method, RequestMapping.class);
if (methodAnnot != null) {
RequestMapping typeAnnot = AnnotationUtils.findAnnotation(handlerType, RequestMapping.class);
RequestMa... | protected RequestMappingInfo createRequestMappingInfo(RequestMapping annot,
boolean isMethodAnnotation,
Method method,
Class<?> handlerType) {
return new RequestMappingInfo(
new PatternsRequestCondition(annot.value(), getUrlPathHelper(), getPathMatcher(), useSuffixPatternMat... |
public void addResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
if (argumentResolvers != null) {
for (HandlerMethodArgumentResolver resolver : argumentResolvers) {
this.argumentResolvers.add(resolver);
}
}
}
}
| public void addResolvers(List<? extends HandlerMethodArgumentResolver> argumentResolvers) {
if (argumentResolvers != null) {
for (HandlerMethodArgumentResolver resolver : argumentResolvers) {
this.argumentResolvers.add(resolver);
}
}
}
}
|
public void addHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers) {
if (returnValueHandlers != null) {
for (HandlerMethodReturnValueHandler handler : returnValueHandlers) {
this.returnValueHandlers.add(handler);
}
}
}
}
| public void addHandlers(List<? extends HandlerMethodReturnValueHandler> returnValueHandlers) {
if (returnValueHandlers != null) {
for (HandlerMethodReturnValueHandler handler : returnValueHandlers) {
this.returnValueHandlers.add(handler);
}
}
}
}
|
private static final MarshallingConfiguration CONFIG;
static {
try {
MARSHALLER_FACTORY = Marshalling.getMarshallerFactory("river", ModuleClassLoader.forModuleName("org.jboss.marshalling.jboss-marshalling-river"));
} catch (ModuleLoadException e) {
throw new RuntimeExcep... | private static final MarshallingConfiguration CONFIG;
static {
try {
MARSHALLER_FACTORY = Marshalling.getMarshallerFactory("river", ModuleClassLoader.forModuleName("org.jboss.marshalling.river"));
} catch (ModuleLoadException e) {
throw new RuntimeException(e);
}... |
private static final MarshallingConfiguration CONFIG;
static {
try {
MARSHALLER_FACTORY = Marshalling.getMarshallerFactory("river", ModuleClassLoader.forModuleName("org.jboss.marshalling.jboss-marshalling-river"));
} catch (ModuleLoadException e) {
throw new RuntimeExcept... | private static final MarshallingConfiguration CONFIG;
static {
try {
MARSHALLER_FACTORY = Marshalling.getMarshallerFactory("river", ModuleClassLoader.forModuleName("org.jboss.marshalling.river"));
} catch (ModuleLoadException e) {
throw new RuntimeException(e);
}
... |
public void open(Map conf, TopologyContext context, SpoutOutputCollector collector) {
_state = TransactionalState.newCoordinatorState(conf, (String) conf.get(Config.TOPOLOGY_TRANSACTIONAL_ID), _spout);
_coordinatorState = new RotatingTransactionalState(_state, META_DIR, true);
_collector = c... | public void open(Map conf, TopologyContext context, SpoutOutputCollector collector) {
_state = TransactionalState.newCoordinatorState(conf, (String) conf.get(Config.TOPOLOGY_TRANSACTIONAL_ID), _spout.getComponentConfiguration());
_coordinatorState = new RotatingTransactionalState(_state, META_DIR, t... |
public static DomainHttpServer create(InetSocketAddress socket, int backlog, ModelController modelController,
Executor executor, File serverTempDir) throws IOException {
HttpServer server = HttpServer.create(socket, backlog);
DomainHttpServer me = new DomainHttpServer(server, modelContro... | public static DomainHttpServer create(InetSocketAddress socket, int backlog, ModelController modelController,
Executor executor, File serverTempDir) throws IOException {
HttpServer server = HttpServer.create(socket, backlog);
DomainHttpServer me = new DomainHttpServer(server, modelContro... |
public enum Result {
REJECT, WARN, ACCEPT;
}
| public enum Result {
REJECT, WARN, ACCEPT
}
|
public void registerElementHandlers(final XMLMapper mapper)
{
mapper.registerRootElement(new QName("urn:jboss:domain:transactions:1.0", "subsystem"),
new ConnectorSubsystemElementParser());
}
| public void registerElementHandlers(final XMLMapper mapper)
{
mapper.registerRootElement(new QName(Namespace.CONNECTOR_1_0.getUriString(), "subsystem"),
new ConnectorSubsystemElementParser());
}
|
public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(StartLevel.class, BlueprintConta... | public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(StartLevel.class, BlueprintConta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.