buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if(deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT) != null) {
return;
}
final ServerDeploym... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if(deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT) != null) {
return;
}
final ServerDeploym... |
private void initCommands() {
cmdRegistry.registerHandler(new PrefixHandler(), "cd", "cn");
cmdRegistry.registerHandler(new ClearScreenHandler(), "clear", "cls");
cmdRegistry.registerHandler(new CommandCommandHandler(cmdRegistry), "command");
cmdRegistry.registerHandler(new ConnectHa... | private void initCommands() {
cmdRegistry.registerHandler(new PrefixHandler(), "cd", "cn");
cmdRegistry.registerHandler(new ClearScreenHandler(), "clear", "cls");
cmdRegistry.registerHandler(new CommandCommandHandler(cmdRegistry), "command");
cmdRegistry.registerHandler(new ConnectHa... |
public Resource readResourceForUpdate(PathAddress requestAddress) {
final PathAddress address = activeStep.address.append(requestAddress);
assert isControllingThread();
Stage currentStage = this.currentStage;
if (currentStage == null) {
throw MESSAGES.operationAlreadyComp... | public Resource readResourceForUpdate(PathAddress requestAddress) {
final PathAddress address = activeStep.address.append(requestAddress);
assert isControllingThread();
Stage currentStage = this.currentStage;
if (currentStage == null) {
throw MESSAGES.operationAlreadyComp... |
public Map<String, Map<String, Grouping>> getTargets(String componentId) {
Map<String, Map<String, Grouping>> ret = new HashMap<String, Map<String, Grouping>>();
for(String otherComponentId: _topology.get_bolts().keySet()) {
Bolt bolt = _topology.get_bolts().get(otherComponentId);
... | public Map<String, Map<String, Grouping>> getTargets(String componentId) {
Map<String, Map<String, Grouping>> ret = new HashMap<String, Map<String, Grouping>>();
for(String otherComponentId: _topology.get_bolts().keySet()) {
Bolt bolt = _topology.get_bolts().get(otherComponentId);
... |
void handle(CommandContext ctx) throws CommandFormatException;
/*
* 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.
*
* This is... | void handle(CommandContext ctx) throws CommandFormatException;
/*
* 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.
*
* This is... |
protected void doHandle(CommandContext ctx) {
final String nodePath = this.nodePath.getValue(ctx.getParsedArguments());
final OperationRequestAddress address;
if (nodePath != null) {
address = new DefaultOperationRequestAddress(ctx.getPrefix());
OperationRequestPars... | protected void doHandle(CommandContext ctx) throws CommandFormatException {
final String nodePath = this.nodePath.getValue(ctx.getParsedArguments());
final OperationRequestAddress address;
if (nodePath != null) {
address = new DefaultOperationRequestAddress(ctx.getPrefix());
... |
public void testContextedExceptionStringThrowableContext() {
exceptionContext = new ContextedRuntimeException(TEST_MESSAGE_2, new Exception(TEST_MESSAGE), new DefaultExceptionContext() {});
final String message = exceptionContext.getMessage();
final String trace = ExceptionUtils.getStackTrac... | public void testContextedExceptionStringThrowableContext() {
exceptionContext = new ContextedRuntimeException(TEST_MESSAGE_2, new Exception(TEST_MESSAGE), new DefaultExceptionContext());
final String message = exceptionContext.getMessage();
final String trace = ExceptionUtils.getStackTrace(e... |
private static final CommandRegistry cmdRegistry = new CommandRegistry();
static {
cmdRegistry.registerHandler(new HelpHandler(), "help", "h");
cmdRegistry.registerHandler(new QuitHandler(), "quit", "q");
cmdRegistry.registerHandler(new ConnectHandler(), "connect");
cmdRegistry.r... | private static final CommandRegistry cmdRegistry = new CommandRegistry();
static {
cmdRegistry.registerHandler(new HelpHandler(), "help", "h");
cmdRegistry.registerHandler(new QuitHandler(), "quit", "q", "exit");
cmdRegistry.registerHandler(new ConnectHandler(), "connect");
cmdRe... |
public void testBase32HexSamples() throws Exception {
for (int i = 0; i < BASE32HEX_TEST_CASES.length; i++) {
// assertEquals(BASE32HEX_TEST_CASES[i][1], Base32.encodeBase32HexString(BASE32HEX_TEST_CASES[i][0].getBytes("UTF-8")));
}
}
| public void testBase32HexSamples() throws Exception {
for (int i = 0; i < BASE32HEX_TEST_CASES.length; i++) {
assertEquals(BASE32HEX_TEST_CASES[i][1], Base32.encodeBase32HexString(BASE32HEX_TEST_CASES[i][0].getBytes("UTF-8")));
}
}
|
public static void controlModelParams(ModelNode node,Properties params){
String str;
StringBuffer sb = new StringBuffer();
String par,child;
Enumeration e = params.propertyNames();
while (e.hasMoreElements()) {
str=(String)e.nextElement();
par=params.getPrope... | public static void checkModelParams(ModelNode node,Properties params){
String str;
StringBuffer sb = new StringBuffer();
String par,child;
Enumeration e = params.propertyNames();
while (e.hasMoreElements()) {
str=(String)e.nextElement();
par=params.getPropert... |
private static void compare(ModelNode node1, ModelNode node2, boolean ignoreUndefined, boolean ignoreType, Stack<String> stack) {
if (! ignoreType) {
Assert.assertEquals(getCompareStackAsString(stack) + " types", node1.getType(), node2.getType());
}
if (node1.getType() == ModelTy... | private static void compare(ModelNode node1, ModelNode node2, boolean ignoreUndefined, boolean ignoreType, Stack<String> stack) {
if (! ignoreType) {
Assert.assertEquals(getCompareStackAsString(stack) + " types", node1.getType(), node2.getType());
}
if (node1.getType() == ModelTy... |
public InputStream openStream() {
return new ByteArrayInputStream("Dependencies: org.jboss.staxmapper,org.jboss.as.controller,org.jboss.as.deployment-repository,org.jboss.as.server,org.jboss.as.host-controller,org.jboss.as.domain-management,org.jboss.as.domain-controller\n\n"... | public InputStream openStream() {
return new ByteArrayInputStream("Dependencies: org.jboss.staxmapper,org.jboss.as.controller,org.jboss.as.deployment-repository,org.jboss.as.server,org.jboss.as.host-controller,org.jboss.as.domain-management\n\n".getBytes());
... |
public void getResourceValue(final ResolutionContext resolutionContext, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<ManagedReferenceFactory> injector) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploy... | public void getResourceValue(final ResolutionContext resolutionContext, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<ManagedReferenceFactory> injector) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploy... |
public interface ComponentView {
/*
* 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.
*
* This is free software; you can redist... | public interface ComponentView {
/*
* 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.
*
* This is free software; you can redist... |
public boolean getResourceValue(final AbstractComponentDescription componentDescription, final BindingDescription referenceDescription, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<ManagedReferenceFactory> injector) {
final String bindingType = referenceD... | public boolean getResourceValue(final BindingDescription referenceDescription, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<ManagedReferenceFactory> injector) {
final String bindingType = referenceDescription.getBindingType();
final DeploymentUnit... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if(!DeploymentTypeMarker.isType(DeploymentType.WAR,deploymentUnit)) {
return;
}
final Map<String, A... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if(!DeploymentTypeMarker.isType(DeploymentType.WAR,deploymentUnit)) {
return;
}
final Map<String, A... |
public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException {
context.startSubsystemElement(Namespace.CURRENT.getUri(), false);
ModelNode model = context.getModelNode();
if (model.isDefined()) {
if (model.hasDefined(Cach... | public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException {
context.startSubsystemElement(InfinispanSchema.CURRENT.getNamespaceUri(), false);
ModelNode model = context.getModelNode();
if (model.isDefined()) {
if (model... |
public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException {
context.startSubsystemElement(Namespace.CURRENT.getUri(), false);
ModelNode model = context.getModelNode();
if (model.isDefined()) {
JGroupsSubsystemResource... | public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException {
context.startSubsystemElement(JGroupsSchema.CURRENT.getNamespaceUri(), false);
ModelNode model = context.getModelNode();
if (model.isDefined()) {
JGroupsSubs... |
protected boolean isPersistent() {
return false;
}
| protected boolean isPersistent() {
return true;
}
|
private void getAllChildAddressesForRemove(PathAddress address, List<PathAddress> addresses, Resource resource) {
List<PathElement> childElements = new ArrayList<PathElement>();
for (String type : resource.getChildTypes()) {
for (String childName : resource.getChildrenNames(type)) {
... | private void getAllChildAddressesForRemove(PathAddress address, List<PathAddress> addresses, Resource resource) {
List<PathElement> childElements = new ArrayList<PathElement>();
for (String type : resource.getChildTypes()) {
for (String childName : resource.getChildrenNames(type)) {
... |
public ServiceBuilder<SessionManagerFactory> build(ServiceTarget target, ServiceName name, ServiceName deploymentServiceName, Module module, JBossWebMetaData metaData) {
ServiceName clusteringServiceName = name.append("clustering");
this.builder.buildDeploymentDependency(target, clusteringServiceNam... | public ServiceBuilder<SessionManagerFactory> build(ServiceTarget target, ServiceName name, ServiceName deploymentServiceName, Module module, JBossWebMetaData metaData) {
ServiceName clusteringServiceName = name.append("distributable");
this.builder.buildDeploymentDependency(target, clusteringService... |
public ServiceBuilder<SingleSignOnManagerFactory> build(ServiceTarget target, ServiceName name, final ServiceName hostServiceName) {
ServiceName managerServiceName = name.append("clustering");
this.builder.build(target, managerServiceName, hostServiceName.getSimpleName()).setInitialMode(ServiceContr... | public ServiceBuilder<SingleSignOnManagerFactory> build(ServiceTarget target, ServiceName name, final ServiceName hostServiceName) {
ServiceName managerServiceName = name.append("distributable");
this.builder.build(target, managerServiceName, hostServiceName.getSimpleName()).setInitialMode(ServiceCo... |
public boolean isReverse() {
return true;
}
| public boolean isReverse() {
return false;
}
|
public void registerChildren(ManagementResourceRegistration resourceRegistration) {
resourceRegistration.registerSubModel(ApplicationClassificationResourceDefinition.INSTANCE);
}
} | public void registerChildren(ManagementResourceRegistration resourceRegistration) {
resourceRegistration.registerSubModel(ApplicationClassificationTypeResourceDefinition.INSTANCE);
}
} |
public void registerChildren(ManagementResourceRegistration resourceRegistration) {
resourceRegistration.registerSubModel(new SensitivityClassificationResourceDefinition());
}
} | public void registerChildren(ManagementResourceRegistration resourceRegistration) {
resourceRegistration.registerSubModel(new SensitivityClassificationTypeResourceDefinition());
}
} |
public String toString() {
return this.locale.toString();
}
| public String toString() {
return (this.locale != null ? this.locale.toString() : "-");
}
|
public double[] operate(double[] v) throws IllegalArgumentException {
final int nRows = this.getRowDimension();
final int nCols = this.getColumnDimension();
if (v.length != nCols) {
throw new IllegalArgumentException("vector has wrong length");
}
final double[] ou... | public double[] operate(double[] v) throws IllegalArgumentException {
final int nRows = this.getRowDimension();
final int nCols = this.getColumnDimension();
if (v.length != nCols) {
throw new IllegalArgumentException("vector has wrong length");
}
final double[] ou... |
public interface MultivariateFunction {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License,... | public interface MultivariateFunction {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License,... |
public void installRuntimeServices(OperationContext context, ModelNode model, List<ServiceController<?>> newControllers, String name) throws OperationFailedException {
final ModelNode fullModel = Resource.Tools.readModel(context.readResource(PathAddress.EMPTY_ADDRESS));
SessionCookieConfig config =... | public void installRuntimeServices(OperationContext context, ModelNode model, List<ServiceController<?>> newControllers, String name) throws OperationFailedException {
final ModelNode fullModel = Resource.Tools.readModel(context.readResource(PathAddress.EMPTY_ADDRESS));
SessionCookieConfig config =... |
public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription description, ViewConfiguration configuration) throws DeploymentUnitProcessingException {
// add the singleton component instance associating interceptor
config... | public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription description, ViewConfiguration configuration) throws DeploymentUnitProcessingException {
// add the singleton component instance associating interceptor
config... |
public static <K, V> Trie<K, V> unmodifiableTrie(final Trie<K, V> trie) {
return UnmodifiableTrie.unmodifiableTrie(trie);
}
} | public static <K, V> Trie<K, V> unmodifiableTrie(final Trie<K, ? extends V> trie) {
return UnmodifiableTrie.unmodifiableTrie(trie);
}
} |
public int compare(final E o1, final E o2) throws UnsupportedOperationException {
if (isLocked == false) {
checkChainIntegrity();
isLocked = true;
}
// iterate over all comparators in the chain
final Iterator<Comparator<E>> comparators = comparatorChain.itera... | public int compare(final E o1, final E o2) throws UnsupportedOperationException {
if (isLocked == false) {
checkChainIntegrity();
isLocked = true;
}
// iterate over all comparators in the chain
final Iterator<Comparator<E>> comparators = comparatorChain.itera... |
public void initialize(ExtensionContext context) {
ROOT_LOGGER.debug("Initializing Deployment Scanner Extension");
final SubsystemRegistration subsystem = context.registerSubsystem(CommonAttributes.DEPLOYMENT_SCANNER, 1, 0);
subsystem.registerXMLElementWriter(DeploymentScannerParser_1_1.INS... | public void initialize(ExtensionContext context) {
ROOT_LOGGER.debug("Initializing Deployment Scanner Extension");
final SubsystemRegistration subsystem = context.registerSubsystem(CommonAttributes.DEPLOYMENT_SCANNER, 1, 0);
subsystem.registerXMLElementWriter(DeploymentScannerParser_1_1.INS... |
public Location getResourceLocation() {
return new Location(this.declaringClass.getResource(), this.metadata.getMethodName());
}
| public Location getResourceLocation() {
return new Location(this.declaringClass.getResource(), metadata);
}
|
private void readHostElement(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> list) throws XMLStreamException {
String hostName = null;
// Deffer adding the namespaces and schema locations until after the host has been created.
List<ModelNode> namespaceOp... | private void readHostElement(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> list) throws XMLStreamException {
String hostName = null;
// Deffer adding the namespaces and schema locations until after the host has been created.
List<ModelNode> namespaceOp... |
public JaasAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.JAAS),
ControllerResolver.getResolver("core.management.security-realm.authentication.jaas"),
new SecurityRealmChildAddHandler(true... | public JaasAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.JAAS),
ControllerResolver.getResolver("core.management.security-realm.authentication.jaas"),
new SecurityRealmChildAddHandler(true... |
public LocalAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.LOCAL),
ControllerResolver.getResolver("core.management.security-realm.authentication.local"),
new SecurityRealmChildAddHandler(t... | public LocalAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.LOCAL),
ControllerResolver.getResolver("core.management.security-realm.authentication.local"),
new SecurityRealmChildAddHandler(t... |
public PlugInAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.PLUG_IN),
ControllerResolver.getResolver("core.management.security-realm.authentication.plug-in"),
new SecurityRealmChildAddHand... | public PlugInAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.PLUG_IN),
ControllerResolver.getResolver("core.management.security-realm.authentication.plug-in"),
new SecurityRealmChildAddHand... |
public PlugInAuthorizationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHORIZATION, ModelDescriptionConstants.PLUG_IN),
ControllerResolver.getResolver("core.management.security-realm.authorization.plug-in"),
new SecurityRealmChildAddHandler... | public PlugInAuthorizationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHORIZATION, ModelDescriptionConstants.PLUG_IN),
ControllerResolver.getResolver("core.management.security-realm.authorization.plug-in"),
new SecurityRealmChildAddHandler... |
public PlugInResourceDefinition() {
super(PathElement.pathElement(PLUG_IN),
ControllerResolver.getResolver("core.management.security-realm.plug-in"),
new SecurityRealmChildAddHandler(false, false),
new SecurityRealmChildRemoveHandler(true), OperationEntry.Flag... | public PlugInResourceDefinition() {
super(PathElement.pathElement(PLUG_IN),
ControllerResolver.getResolver("core.management.security-realm.plug-in"),
new SecurityRealmChildAddHandler(true),
new SecurityRealmChildRemoveHandler(true), OperationEntry.Flag.RESTART... |
public PropertiesAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.PROPERTIES),
ControllerResolver.getResolver("core.management.security-realm.authentication.properties"),
new SecurityRealmCh... | public PropertiesAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.PROPERTIES),
ControllerResolver.getResolver("core.management.security-realm.authentication.properties"),
new SecurityRealmCh... |
public PropertiesAuthorizationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHORIZATION, ModelDescriptionConstants.PROPERTIES),
ControllerResolver.getResolver("core.management.security-realm.authorization.properties"),
new SecurityRealmChild... | public PropertiesAuthorizationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHORIZATION, ModelDescriptionConstants.PROPERTIES),
ControllerResolver.getResolver("core.management.security-realm.authorization.properties"),
new SecurityRealmChild... |
public PropertyResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.PROPERTY),
ControllerResolver.getResolver("core.management.security-realm.property"),
new SecurityRealmChildAddHandler(true, false, VALUE),
new SecurityRealmChildRemo... | public PropertyResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.PROPERTY),
ControllerResolver.getResolver("core.management.security-realm.property"),
new SecurityRealmChildAddHandler(true, VALUE),
new SecurityRealmChildRemoveHandl... |
public SSLServerIdentityResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.SERVER_IDENTITY, ModelDescriptionConstants.SSL),
ControllerResolver.getResolver("core.management.security-realm.server-identity.ssl"),
new SecurityRealmChildAddHandler(false... | public SSLServerIdentityResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.SERVER_IDENTITY, ModelDescriptionConstants.SSL),
ControllerResolver.getResolver("core.management.security-realm.server-identity.ssl"),
new SecurityRealmChildAddHandler(false... |
public SecretServerIdentityResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.SERVER_IDENTITY, ModelDescriptionConstants.SECRET),
ControllerResolver.getResolver("core", "management", "security-realm", "server-identity", "secret"),
new SecurityRealm... | public SecretServerIdentityResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.SERVER_IDENTITY, ModelDescriptionConstants.SECRET),
ControllerResolver.getResolver("core", "management", "security-realm", "server-identity", "secret"),
new SecurityRealm... |
public TruststoreAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.TRUSTSTORE),
ControllerResolver.getResolver("core.management.security-realm.authentication.truststore"),
new SecurityRealmCh... | public TruststoreAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.TRUSTSTORE),
ControllerResolver.getResolver("core.management.security-realm.authentication.truststore"),
new SecurityRealmCh... |
public XmlAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.USERS),
ControllerResolver.getResolver("core.management.security-realm.authentication.xml"),
new SecurityRealmChildAddHandler(true,... | public XmlAuthenticationResourceDefinition() {
super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.USERS),
ControllerResolver.getResolver("core.management.security-realm.authentication.xml"),
new SecurityRealmChildAddHandler(true)... |
@Message(id = 11864, value = "Invaliding binding name %s, name must start with one of %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... | @Message(id = 11864, value = "Invaliding binding name %s, name must start with one of %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... |
public void init() {
profileNames = CLITestSuite.serverProfiles.keySet().toArray(new String[CLITestSuite.serverProfiles.size()]);
}
| public void init() {
profileNames = CLITestSuite.serverProfiles.keySet().toArray(new String[] {});
}
|
package org.wildfly.extension.mod_cluster;
/*
* 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 ... | package org.wildfly.extension.mod_cluster;
/*
* 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 ... |
private void initCommands() {
cmdRegistry.registerHandler(new PrefixHandler(), "cd", "cn");
cmdRegistry.registerHandler(new ClearScreenHandler(), "clear", "cls");
cmdRegistry.registerHandler(new CommandCommandHandler(cmdRegistry), "command");
cmdRegistry.registerHandler(new ConnectHa... | private void initCommands() {
cmdRegistry.registerHandler(new PrefixHandler(), "cd", "cn");
cmdRegistry.registerHandler(new ClearScreenHandler(), "clear", "cls");
cmdRegistry.registerHandler(new CommandCommandHandler(cmdRegistry), "command");
cmdRegistry.registerHandler(new ConnectHa... |
public void execute(final RuntimeTaskContext context) throws OperationFailedException {
final ServiceRegistry registry = context.getServiceRegistry();
// Use the module for now. Would be nice to keep the driver info in the model.
final Module... | public void execute(final RuntimeTaskContext context) throws OperationFailedException {
final ServiceRegistry registry = context.getServiceRegistry();
// Use the module for now. Would be nice to keep the driver info in the model.
final Module... |
public Object processInvocation(InterceptorContext context) throws Exception {
for(ComponentInjector.InjectionHandle injectionHandle : injections) {
injectionHandle.disinject();
}
return null;
}
}
| public Object processInvocation(InterceptorContext context) throws Exception {
for(ComponentInjector.InjectionHandle injectionHandle : injections) {
injectionHandle.uninject();
}
return null;
}
}
|
void uninject();
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify... | void uninject();
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify... |
public void testManagedBean() throws Exception {
BeanWithSimpleInjected bean = LookupService.getBean();
Assert.assertNotNull(bean);
Assert.assertNotNull(bean.getSimple());
String s = bean.echo("Hello");
Assert.assertNotNull(s);
Assert.assertEquals("#InterceptorBean##O... | public void testManagedBean() throws Exception {
BeanWithSimpleInjected bean = LookupService.getBean();
Assert.assertNotNull(bean);
Assert.assertNotNull(bean.getSimple());
String s = bean.echo("Hello");
Assert.assertNotNull(s);
Assert.assertEquals("#InterceptorBean##O... |
private void writeFilter(final XMLExtendedStreamWriter writer, final ModelNode node) throws XMLStreamException {
if (node.hasDefined(CommonAttributes.FILTER.getName())) {
writer.writeEmptyElement(CommonAttributes.FILTER.getXmlName());
writer.writeAttribute(CommonAttributes.STRING, no... | private void writeFilter(final XMLExtendedStreamWriter writer, final ModelNode node) throws XMLStreamException {
if (node.hasDefined(CommonAttributes.FILTER.getName())) {
writer.writeEmptyElement(CommonAttributes.FILTER.getXmlName());
writer.writeAttribute(CommonAttributes.STRING, no... |
public static Archive<?> deploy() {
return ShrinkWrap.create(JavaArchive.class, "testDsXmlDeployment.jar")
.addPackage(DeployedXmlDataSourceManagementTestCase.class.getPackage())
.addAsManifestResource(DeployedXmlDataSourceManagementTestCase.class.getPackage(), "MANIFEST.MF",... | public static Archive<?> deploy() {
return ShrinkWrap.create(JavaArchive.class, "testDsXmlDeployment.jar")
.addClass(DeployedXmlDataSourceManagementTestCase.class)
.addAsManifestResource(DeployedXmlDataSourceManagementTestCase.class.getPackage(), "MANIFEST.MF", "MANIFEST.MF")... |
public static Archive<?> deploy() {
return ShrinkWrap.create(JavaArchive.class, "testDsXmlDeployment.jar")
.addPackage(DeployedXmlDataSourceTestCase.class.getPackage())
.addAsManifestResource(DeployedXmlDataSourceTestCase.class.getPackage(), "MANIFEST.MF", "MANIFEST.MF");
... | public static Archive<?> deploy() {
return ShrinkWrap.create(JavaArchive.class, "testDsXmlDeployment.jar")
.addClass(DeployedXmlDataSourceTestCase.class)
.addAsManifestResource(DeployedXmlDataSourceTestCase.class.getPackage(), "MANIFEST.MF", "MANIFEST.MF");
}
|
public static Archive<?> deploy() {
return ShrinkWrap.create(JavaArchive.class, "testJMSXmlDeployment.jar")
.addPackage(DeployedXmlJMSManagementTestCase.class.getPackage())
.addAsManifestResource(DeployedXmlJMSManagementTestCase.class.getPackage(), "MANIFEST.MF", "MANIFEST.MF... | public static Archive<?> deploy() {
return ShrinkWrap.create(JavaArchive.class, "testJMSXmlDeployment.jar")
.addClass(DeployedXmlJMSManagementTestCase.class)
.addAsManifestResource(DeployedXmlJMSManagementTestCase.class.getPackage(), "MANIFEST.MF", "MANIFEST.MF");
}
|
public static Archive<?> deploy() {
return ShrinkWrap.create(JavaArchive.class, "testDsXmlDeployment.jar")
.addPackage(DeployedXmlDataSourceTestCase.class.getPackage())
.addAsManifestResource(DeployedXmlDataSourceTestCase.class.getPackage(), "MANIFEST.MF", "MANIFEST.MF");
... | public static Archive<?> deploy() {
return ShrinkWrap.create(JavaArchive.class, "testDsXmlDeployment.jar")
.addClass(DeployedXmlJMSTestCase.class)
.addAsManifestResource(DeployedXmlDataSourceTestCase.class.getPackage(), "MANIFEST.MF", "MANIFEST.MF");
}
|
public synchronized void start(final StartContext context) throws StartException {
// JTS expects the TCCL to be set to something that can find the log factory class.
setContextLoader(ArjunaTransactionManagerService.class.getClassLoader());
try {
final JTAEnvironmentBean jtaEn... | public synchronized void start(final StartContext context) throws StartException {
// JTS expects the TCCL to be set to something that can find the log factory class.
setContextLoader(ArjunaTransactionManagerService.class.getClassLoader());
try {
final JTAEnvironmentBean jtaEn... |
protected String calculateHttpEncoding(final String httpContentType, final String bomEnc, final String xmlGuessEnc,
final String xmlEnc, final boolean lenient, final String defaultEncoding) throws IOException {
final MockXmlStreamReader mock = new MockXmlStreamReader(defaultEncoding);
St... | protected String calculateHttpEncoding(final String httpContentType, final String bomEnc, final String xmlGuessEnc,
final String xmlEnc, final boolean lenient, final String defaultEncoding) throws IOException {
final MockXmlStreamReader mock = new MockXmlStreamReader(defaultEncoding);
fi... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
try {
String name = persister.snapshot();
context.getResult().get().set(name);
context.completeStep();
} catch (ConfigurationPersistenceException e) {
... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
try {
String name = persister.snapshot();
context.getResult().set(name);
context.completeStep();
} catch (ConfigurationPersistenceException e) {
throw ... |
public T build();
} | * public Font build() {
* return this.font;
* }
* }
* </pre></code>
*
* Example Builder Usage:
* <code><pre>
* Font bold14ptSansSerifFont = new FontBuilder(Font.SANS_SERIF).bold()
* .size(14.0f)
* ... |
public CommonDomainContainerConfiguration() {
managementAddress = getInetAddress("127.0.0.1");
managementPort = 9999;
}
| public CommonDomainContainerConfiguration() {
managementAddress = getInetAddress("127.0.0.1");
managementPort = 9990;
}
|
public void createClient() throws Exception {
InetAddress address = InetAddress.getLocalHost();
int port = 9999;
DomainClient domainClient = DomainClient.Factory.create(
address,
port,
Authentication.getCallbackHandler());
cli... | public void createClient() throws Exception {
InetAddress address = InetAddress.getLocalHost();
int port = 9990;
DomainClient domainClient = DomainClient.Factory.create(
address,
port,
Authentication.getCallbackHandler());
cli... |
private boolean connectCommandContext(CommandContext cmdCtx) throws Exception {
JConsoleContext jcCtx = this.getContext();
MBeanServerConnection mbeanServerConn = jcCtx.getMBeanServerConnection();
if (mbeanServerConn instanceof RemotingMBeanServerConnection) {
return connectUsin... | private boolean connectCommandContext(CommandContext cmdCtx) throws Exception {
JConsoleContext jcCtx = this.getContext();
MBeanServerConnection mbeanServerConn = jcCtx.getMBeanServerConnection();
if (mbeanServerConn instanceof RemotingMBeanServerConnection) {
return connectUsin... |
protected void revertUpdateToRuntime(final OperationContext context, final ModelNode operation,
final String attributeName, final ModelNode valueToRestore,
final ModelNode valueToRevert, final Void handback) throws OperationFailedExce... | protected void revertUpdateToRuntime(final OperationContext context, final ModelNode operation,
final String attributeName, final ModelNode valueToRestore,
final ModelNode valueToRevert, final Void handback) throws OperationFailedExce... |
private MBeanServerConnection getMBeanServerConnection() throws IOException {
final String address = managementClient.getMgmtAddress()+":"+managementClient.getMgmtPort();
// return JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:remoting-jmx://localhost:9999"))
// .getMBeanS... | private MBeanServerConnection getMBeanServerConnection() throws IOException {
final String address = managementClient.getMgmtAddress()+":"+managementClient.getMgmtPort();
// return JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:remoting-jmx://localhost:9999"))
// .getMBeanS... |
private MBeanServerConnection setupAndGetConnection() throws Exception {
// Make sure that we can connect to the MBean server
String urlString = System
.getProperty("jmx.service.url", "service:jmx:remoting-jmx://" + managementClient.getMgmtAddress() + ":" + managementClient.getMgmtPo... | private MBeanServerConnection setupAndGetConnection() throws Exception {
// Make sure that we can connect to the MBean server
String urlString = System
.getProperty("jmx.service.url", "service:jmx:http-remoting-jmx://" + managementClient.getMgmtAddress() + ":" + managementClient.getM... |
public void testServerShutdownRemoteCall() throws Exception {
// First start the server which has a remote-outbound-connection
this.container.start(CONTAINER);
final ModelControllerClient client = TestSuiteEnvironment.getModelControllerClient();
ManagementClient managementClient = ne... | public void testServerShutdownRemoteCall() throws Exception {
// First start the server which has a remote-outbound-connection
this.container.start(CONTAINER);
final ModelControllerClient client = TestSuiteEnvironment.getModelControllerClient();
ManagementClient managementClient = ne... |
public static CommandContext getCommandContext() throws CliInitializationException {
setJBossCliConfig();
return CommandContextFactory.getInstance().newCommandContext(serverAddr, serverPort, null, null);
}
| public static CommandContext getCommandContext() throws CliInitializationException {
setJBossCliConfig();
return CommandContextFactory.getInstance().newCommandContext("http-remoting", serverAddr, serverPort, null, null);
}
|
public boolean sendConnect(String cliAddress) {
String addr = cliAddress != null ? cliAddress : TestSuiteEnvironment.getServerAddress();
try {
ctx.connectController(addr, TestSuiteEnvironment.getServerPort());
return true;
} catch (CommandLineException e) {
... | public boolean sendConnect(String cliAddress) {
String addr = cliAddress != null ? cliAddress : TestSuiteEnvironment.getServerAddress();
try {
ctx.connectController("http-remoting", addr, TestSuiteEnvironment.getServerPort());
return true;
} catch (CommandLineExceptio... |
public static int getServerPort() {
return Integer.getInteger("as.managementPort", 9999);
}
| public static int getServerPort() {
return Integer.getInteger("as.managementPort", 9990);
}
|
protected void completeConfig() {
final WarMetaData warMetaData = deploymentUnitContext.getAttachment(WarMetaData.ATTACHMENT_KEY);
JBossWebMetaData metaData = warMetaData.getMergedJBossWebMetaData();
// Process Servlet API related annotations that were dependent on
// Servlet declar... | protected void completeConfig() {
final WarMetaData warMetaData = deploymentUnitContext.getAttachment(WarMetaData.ATTACHMENT_KEY);
JBossWebMetaData metaData = warMetaData.getMergedJBossWebMetaData();
// Process Servlet API related annotations that were dependent on
// Servlet declar... |
protected boolean isSame(Chromosome another) {
// type check
if (! (another instanceof RandomKey))
return false;
RandomKey<?> anotherRk = (RandomKey<?>) another;
// size check
if (getLength() != anotherRk.getLength())
return false;
// ... | protected boolean isSame(Chromosome another) {
// type check
if (! (another instanceof RandomKey<?>))
return false;
RandomKey<?> anotherRk = (RandomKey<?>) another;
// size check
if (getLength() != anotherRk.getLength())
return false;
... |
public Chromosome mutate(Chromosome original) {
if (!(original instanceof RandomKey)) {
throw MathRuntimeException.createIllegalArgumentException(
"RandomKeyMutation works only with RandomKeys, got " +
original.getClass().getSimpleName());
}
... | public Chromosome mutate(Chromosome original) {
if (!(original instanceof RandomKey<?>)) {
throw MathRuntimeException.createIllegalArgumentException(
"RandomKeyMutation works only with RandomKeys, got " +
original.getClass().getSimpleName());
}
... |
public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbst... | public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbst... |
public void testNoDenseOutput()
throws DerivativeException, IntegratorException {
TestProblem1 pb1 = new TestProblem1();
TestProblem1 pb2 = (TestProblem1) pb1.clone();
double minStep = 0.1 * (pb1.getFinalTime() - pb1.getInitialTime());
double maxStep = pb1.getFinalTime() - pb1.getInitialTime();
... | public void testNoDenseOutput()
throws DerivativeException, IntegratorException {
TestProblem1 pb1 = new TestProblem1();
TestProblem1 pb2 = pb1.copy();
double minStep = 0.1 * (pb1.getFinalTime() - pb1.getInitialTime());
double maxStep = pb1.getFinalTime() - pb1.getInitialTime();
double scalAbs... |
public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbstract pb... | public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbstract pb... |
public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 5; i < 10; ++i) {
TestProblemAbst... | public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 5; i < 10; ++i) {
TestProblemAbst... |
public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbst... | public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbst... |
public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblem... | public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblem... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (deploymentUnit.getParent() != null) {
return;
}
EEModuleDescription moduleDescription = deploymen... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (deploymentUnit.getParent() != null) {
return;
}
EEModuleDescription moduleDescription = deploymen... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (DeploymentTypeMarker.isType(DeploymentType.EAR, deploymentUnit)) {
return;
}
EEModuleDescription ... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (DeploymentTypeMarker.isType(DeploymentType.EAR, deploymentUnit)) {
return;
}
EEModuleDescription ... |
private void checkList(final ModelNode operation, final String paramName, final ModelType modelType, final ModelNode describedProperty, final ModelNode value) {
if (describedProperty.get(TYPE).asType() == ModelType.LIST) {
if (describedProperty.hasDefined(VALUE_TYPE)) {
ModelType... | private void checkList(final ModelNode operation, final String paramName, final ModelType modelType, final ModelNode describedProperty, final ModelNode value) {
if (describedProperty.get(TYPE).asType() == ModelType.LIST) {
if (describedProperty.hasDefined(VALUE_TYPE) && describedProperty.get(VAL... |
public boolean isSet(OPTION option) {
return (options == null) ? false : options.contains(opt);
}
| public boolean isSet(OPTION option) {
return (options == null) ? false : options.contains(option);
}
|
protected void handleDeploymentDescriptor(final DeploymentUnit deploymentUnit, final DeploymentReflectionIndex deploymentReflectionIndex, final Class<?> componentClass, final SessionBeanComponentDescription componentConfiguration) throws DeploymentUnitProcessingException {
if (componentConfiguration.getDesc... | protected void handleDeploymentDescriptor(final DeploymentUnit deploymentUnit, final DeploymentReflectionIndex deploymentReflectionIndex, final Class<?> componentClass, final SessionBeanComponentDescription componentConfiguration) throws DeploymentUnitProcessingException {
if (componentConfiguration.getDesc... |
public String toString() {
if (iToString == null) {
StringBuffer buf = new StringBuffer(4);
if (isNegated()) {
buf.append('^');
}
buf.append(start);
if (start != end) {
buf.append('-');
buf.append(end... | public String toString() {
if (iToString == null) {
StringBuilder buf = new StringBuilder(4);
if (isNegated()) {
buf.append('^');
}
buf.append(start);
if (start != end) {
buf.append('-');
buf.append(e... |
public String getFormattedExceptionMessage(String baseMessage){
StringBuffer buffer = new StringBuffer(256);
if (baseMessage != null) {
buffer.append(baseMessage);
}
if (contextKeyList.size() > 0) {
if (buffer.length() > 0l) {
buffer.a... | public String getFormattedExceptionMessage(String baseMessage){
StringBuilder buffer = new StringBuilder(256);
if (baseMessage != null) {
buffer.append(baseMessage);
}
if (contextKeyList.size() > 0) {
if (buffer.length() > 0l) {
buffer... |
public String toString() {
if (toString == null) {
StringBuffer buf = new StringBuffer(32);
buf.append("Range[");
buf.append(min);
buf.append(',');
buf.append(max);
buf.append(']');
toString = buf.toString();
}
... | public String toString() {
if (toString == null) {
StringBuilder buf = new StringBuilder(32);
buf.append("Range[");
buf.append(min);
buf.append(',');
buf.append(max);
buf.append(']');
toString = buf.toString();
}
... |
public String toString() {
StringBuffer buf = new StringBuffer(32);
buf.append("Range[");
buf.append(getMinimumNumber());
buf.append(',');
buf.append(getMaximumNumber());
buf.append(']');
return buf.toString();
}
| public String toString() {
StringBuilder buf = new StringBuilder(32);
buf.append("Range[");
buf.append(getMinimumNumber());
buf.append(',');
buf.append(getMaximumNumber());
buf.append(']');
return buf.toString();
}
|
public void update(Observable o, Object arg) {
observables.add(o);
arguments.add(arg);
}
};
state.addObserver(o);
Assert.assertEquals("Default", SubsystemState.Activation.LAZY, state.getActivationPolicy());
Assert.assertEquals("Pr... | public void update(Observable o, Object arg) {
observables.add(o);
arguments.add(arg);
}
};
state.addObserver(o);
Assert.assertEquals("Default", SubsystemState.Activation.LAZY, state.getActivationPolicy());
Assert.assertEquals("Pr... |
protected void boot(final BootContext context) throws ConfigurationPersistenceException {
final ServiceTarget serviceTarget = context.getServiceTarget();
try {
super.boot(hostControllerConfigurationPersister.load()); // This parses the host.xml and invokes all ops
final Run... | protected void boot(final BootContext context) throws ConfigurationPersistenceException {
final ServiceTarget serviceTarget = context.getServiceTarget();
try {
super.boot(hostControllerConfigurationPersister.load()); // This parses the host.xml and invokes all ops
final Run... |
public static Archive<?> deploy() throws Exception {
EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, ARCHIVE_NAME + ".ear");
// add required jars as manifest dependencies
ear.addAsManifestResource(new StringAsset("Dependencies: org.javassist export,org.hibernate \n"), "MA... | public static Archive<?> deploy() throws Exception {
EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, ARCHIVE_NAME + ".ear");
// add required jars as manifest dependencies
ear.addAsManifestResource(new StringAsset("Dependencies: org.hibernate \n"), "MANIFEST.MF");
... |
public static Archive<?> deploy() throws Exception {
EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, ARCHIVE_NAME + ".ear");
// add required jars as manifest dependencies
ear.addAsManifestResource(new StringAsset("Dependencies: org.javassist,org.hibernate\n"), "MANIFEST.M... | public static Archive<?> deploy() throws Exception {
EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, ARCHIVE_NAME + ".ear");
// add required jars as manifest dependencies
ear.addAsManifestResource(new StringAsset("Dependencies: org.hibernate\n"), "MANIFEST.MF");
... |
public <A extends Annotation> A getMethodAnnotation(Class<A> annotationType) {
return AnnotationUtils.findAnnotation(this.bridgedMethod, annotationType);
}
| public <A extends Annotation> A getMethodAnnotation(Class<A> annotationType) {
return AnnotationUtils.findAnnotation(this.method, annotationType);
}
|
public static boolean isExecute(ModelControllerClient client, String[] parent, OperationRequestAddress address, String operation) {
final ModelNode accessControl = getAccessControl(client, parent, address, true);
if(accessControl == null) {
return false;
}
if(!accessCont... | public static boolean isExecute(ModelControllerClient client, String[] parent, OperationRequestAddress address, String operation) {
final ModelNode accessControl = getAccessControl(client, parent, address, true);
if(accessControl == null) {
return false;
}
if(!accessCont... |
private void installNativeManagementService(final OperationContext context, final ModelNode subModel, final ServiceVerificationHandler verificationHandler) throws OperationFailedException {
// Remove the old connector
final ModelNode portNode = NativeManagementResourceDefinition.NATIVE_PORT.resolve... | private void installNativeManagementService(final OperationContext context, final ModelNode subModel, final ServiceVerificationHandler verificationHandler) throws OperationFailedException {
// Remove the old connector
final ModelNode portNode = NativeManagementResourceDefinition.NATIVE_PORT.resolve... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
final String name = address.getLastElement().getValue();
context.removeService(RemotingServices.connectorServiceNam... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
final String name = address.getLastElement().getValue();
RemotingServices.removeConnectorServices(context, name);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.