buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(BundleStateMBean.class);
... | public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(BundleStateMBean.class);
... |
public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(StartLevel.class);
... | public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(StartLevel.class, DocumentBuilde... |
public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(StartLevel.class);
... | public InputStream openStream() {
OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
builder.addBundleSymbolicName(archive.getName());
builder.addBundleManifestVersion(2);
builder.addImportPackages(StartLevel.class, SAXParser.clas... |
private JASPIAuthenticationResourceDefinition() {
super(SecurityExtension.JASPI_AUTH_PATH,
SecurityExtension.getResourceDescriptionResolver(Constants.AUTHENTICATION + "." + Constants.JASPI),
JASPIAuthenticationResourceDefinitionAdd.INSTANCE, new SecurityDomainReloadRemoveHand... | private JASPIAuthenticationResourceDefinition() {
super(SecurityExtension.PATH_JASPI_AUTH,
SecurityExtension.getResourceDescriptionResolver(Constants.AUTHENTICATION + "." + Constants.JASPI),
JASPIAuthenticationResourceDefinitionAdd.INSTANCE, new SecurityDomainReloadRemoveHand... |
public String getName() {
return this.getName();
}
| public String getName() {
return this.name;
}
|
public List<String> properties() {
List<String> properties = new ArrayList<String>(results.size());
for (BindingResult result : this) {
properties.add(result.getProperty());
}
return properties;
}
| public List<String> properties() {
List<String> properties = new ArrayList<String>(results.size());
for (BindingResult result : this) {
properties.add(result.getFieldName());
}
return properties;
}
|
public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME);
final ModelNodeRegistration registration = subsystem.registerSubsystemModel(EJB3SubsystemProviders.SUBSYSTEM);
registration.registerOperationHandler(ADD, Ejb3... | public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME);
final ModelNodeRegistration registration = subsystem.registerSubsystemModel(EJB3SubsystemProviders.SUBSYSTEM);
registration.registerOperationHandler(ADD, EJB3... |
Collection<WorkerSlot> availableSlots(Collection<SupervisorDetails> existingSupervisors, Collection<WorkerSlot> usedSlots, Topologies topologies, Collection<String> topologiesWithMissingAssignments);
package backtype.storm.scheduler;
import java.util.Collection;
import java.util.Map;
public interface INimbus {
v... | Collection<WorkerSlot> availableSlots(Collection<SupervisorDetails> existingSupervisors, Collection<WorkerSlot> usedSlots, Topologies topologies, Collection<String> topologiesWithMissingAssignments);
package backtype.storm.scheduler;
import java.util.Collection;
import java.util.Map;
public interface INimbus {
v... |
protected String getSubsystemXml() throws IOException {
return readResource("identity-management-subsystem-example-1.0.xml");
}
| protected String getSubsystemXml() throws IOException {
return readResource("identity-management-subsystem-example-2.0.xml");
}
|
public void start(StartContext context) throws StartException {
callbackHandle = pathManagerInjector.getValue().registerCallback(pathRef, PathManager.ReloadServerCallback.create(), PathManager.Event.UPDATED, PathManager.Event.REMOVED);
String objectStoreDir = pathManagerInjector.getValue().resolveRe... | public void start(StartContext context) throws StartException {
callbackHandle = pathManagerInjector.getValue().registerCallback(pathRef, PathManager.ReloadServerCallback.create(), PathManager.Event.UPDATED, PathManager.Event.REMOVED);
String objectStoreDir = pathManagerInjector.getValue().resolveRe... |
public void flush() throws IOException {
if (out != null) {
out.flush();
}
}
/*
* Various ZIP constants
*/
/**
* local file header signature
*/
static final byte[] LFH_SIG = ZipLong.LFH_SIG.getBytes();
/**
* data descriptor signature
*/
... | public void flush() throws IOException {
if (out != null) {
out.flush();
}
}
/*
* Various ZIP constants
*/
/**
* local file header signature
*/
static final byte[] LFH_SIG = ZipLong.LFH_SIG.getBytes();
/**
* data descriptor signature
*/
... |
public void undeploy(DeploymentUnit context) {
}
/**
* Processes the injection targets of a resource binding
*
* @param classLoader The module class loader
* @param deploymentReflectionIndex The deployment reflection index
* @param entry The resource with injection targets
* @... | public void undeploy(DeploymentUnit context) {
}
/**
* Processes the injection targets of a resource binding
*
* @param classLoader The module class loader
* @param deploymentReflectionIndex The deployment reflection index
* @param entry The resource with injection targets
* @... |
private <E extends AnnotationTarget> BindingDescription processWebServiceRef(
final AbstractWebServiceRefAnnotation<E> processor, final AnnotationInstance annotation,
final E annotated, final UnifiedVirtualFile vfs, final Module duModule, final String name,
final String classNam... | private <E extends AnnotationTarget> BindingDescription processWebServiceRef(
final AbstractWebServiceRefAnnotation<E> processor, final AnnotationInstance annotation,
final E annotated, final UnifiedVirtualFile vfs, final Module duModule, final String name,
final String classNam... |
private void publishEvent(ApplicationEvent event) {
try {
this.eventPublisher.publishEvent(event);
}
catch (Throwable ex) {
logger.error("Failed to publish event " + event, ex);
}
}
| private void publishEvent(ApplicationEvent event) {
try {
this.eventPublisher.publishEvent(event);
}
catch (Throwable ex) {
logger.error("Error while publishing " + event, ex);
}
}
|
private static byte[] utf8(String s) {
// We would use commons-codec-1.4.jar own utility method for this, but we
// need this class to be able to run against commons-codec-1.3.jar, hence the
// duplication here.
try {
return s != null ? s.getBytes("UTF-8") : nul... | private static byte[] utf8(String s) {
// We would use commons-codec-1.4.jar own utility method for this, but we
// need this class to be able to run against commons-codec-1.3.jar, hence the
// duplication here.
try {
return s != null ? s.getBytes("UTF-8") : nul... |
public @interface Caching {
/*
* 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/LICENSE-2.... | public @interface Caching {
/*
* 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/LICENSE-2.... |
protected StringBuilder getOperationDescription() {
StringBuilder result = new StringBuilder();
result.append("CacheDefinition[");
result.append(this.name);
result.append("] caches=");
result.append(this.cacheNames);
result.append(" | condition='");
result.append(this.condition);
result.append("' | key... | protected StringBuilder getOperationDescription() {
StringBuilder result = new StringBuilder();
result.append("CacheOperation[");
result.append(this.name);
result.append("] caches=");
result.append(this.cacheNames);
result.append(" | condition='");
result.append(this.condition);
result.append("' | key=... |
public void configureDependency(final ServiceBuilder<?> serviceBuilder) throws DeploymentUnitProcessingException {
InjectionSource.ResolutionContext resolutionContext = new InjectionSource.ResolutionContext(
configuration.getComponentDescription().getNamingMode() == ComponentNami... | public void configureDependency(final ServiceBuilder<?> serviceBuilder) throws DeploymentUnitProcessingException {
InjectionSource.ResolutionContext resolutionContext = new InjectionSource.ResolutionContext(
configuration.getComponentDescription().getNamingMode() == ComponentNami... |
public final Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer,
NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception {
Class<?> paramType = parameter.getParameterType();
NamedValueInfo namedValueInfo = getNamedValueInfo(parameter);
Object arg =... | public final Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer,
NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception {
Class<?> paramType = parameter.getParameterType();
NamedValueInfo namedValueInfo = getNamedValueInfo(parameter);
Object arg =... |
private ResultAction executeStep(final Step step) {
PathAddress oldModelAddress = modelAddress;
ModelNode oldOperation = operation;
ModelNode oldResponse = this.response;
StampHolder oldRestartStamp = restartStampHolder;
Stage stepStage = null;
ModelNode response = nu... | private ResultAction executeStep(final Step step) {
PathAddress oldModelAddress = modelAddress;
ModelNode oldOperation = operation;
ModelNode oldResponse = this.response;
StampHolder oldRestartStamp = restartStampHolder;
Stage stepStage = null;
ModelNode response = nu... |
public void testMethodAccessor() throws Exception {
BeanMap map = (BeanMap) makeFullMap();
Method method = BeanWithProperties.class.getDeclaredMethod("getSomeIntegerValue", null);
assertEquals(method, map.getReadMethod("someIntegerValue"));
}
| public void testMethodAccessor() throws Exception {
BeanMap map = (BeanMap) makeFullMap();
Method method = BeanWithProperties.class.getDeclaredMethod("getSomeIntegerValue", (Class[]) null);
assertEquals(method, map.getReadMethod("someIntegerValue"));
}
|
public void setExpired() {
DeferredResult<String> result = new DeferredResult<String>();
assertFalse(result.isSetOrExpired());
result.setExpired();
assertTrue(result.isSetOrExpired());
assertFalse(result.setResult("hello"));
}
| public void setExpired() {
DeferredResult<String> result = new DeferredResult<String>();
assertFalse(result.isSetOrExpired());
result.getAndSetExpired();
assertTrue(result.isSetOrExpired());
assertFalse(result.setResult("hello"));
}
|
public void run() {
i.set(controller.execute(getOperation("good", "attr1", 3), null, null, null).get("result").asInt());
latch.countDown();
}
}).start();
latch.await();
assertEquals(1, i.get());
}
| public void run() {
i.set(controller.execute(getOperation("good", "attr1", 3), null, null, null).get("result").asInt());
latch.countDown();
}
}).start();
latch.await();
assertEquals(2, i.get());
}
|
public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation)
throws OperationFailedException {
ModelNode transformed = operation.get(VALUE);
String name = operation.get(NAME).asStri... | public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation)
throws OperationFailedException {
ModelNode transformed = operation.get(VALUE);
String name = operation.get(NAME).asStri... |
private String readCString(final int length) throws IOException {
byte tmpBuffer[] = new byte[length];
readFully(tmpBuffer, 0, tmpBuffer.length);
return new String(tmpBuffer, 0, tmpBuffer.length - 1);
}
| private String readCString(final int length) throws IOException {
byte tmpBuffer[] = new byte[length];
readFully(tmpBuffer, 0, tmpBuffer.length);
return new String(tmpBuffer, 0, tmpBuffer.length - 1); // TODO default charset?
}
|
private void readDirectoryEntry(DumpArchiveEntry entry)
throws IOException {
long size = entry.getEntrySize();
boolean first = true;
while (first ||
(DumpArchiveConstants.SEGMENT_TYPE.ADDR == entry.getHeaderType())) {
// read the header that we just peeke... | private void readDirectoryEntry(DumpArchiveEntry entry)
throws IOException {
long size = entry.getEntrySize();
boolean first = true;
while (first ||
(DumpArchiveConstants.SEGMENT_TYPE.ADDR == entry.getHeaderType())) {
// read the header that we just peeke... |
private static String exceptionMessage(byte[] buffer, final int offset,
final int length, int current, final byte currentByte) {
String string = new String(buffer, offset, length);
string=string.replaceAll("\0", "{NUL}"); // Replace NULs to allow string to be printed
final String... | private static String exceptionMessage(byte[] buffer, final int offset,
final int length, int current, final byte currentByte) {
String string = new String(buffer, offset, length); // TODO default charset?
string=string.replaceAll("\0", "{NUL}"); // Replace NULs to allow string to be pri... |
public void testPreconditionedSolution2() {
final int n = 100;
final int maxIterations = 100000;
final Array2DRowRealMatrix a = new Array2DRowRealMatrix(n, n);
double daux = 1.;
for (int i = 0; i < n; i++) {
a.setEntry(i, i, daux);
daux *= 1.2;
... | public void testPreconditionedSolution2() {
final int n = 100;
final int maxIterations = 100000;
final Array2DRowRealMatrix a = new Array2DRowRealMatrix(n, n);
double daux = 1.;
for (int i = 0; i < n; i++) {
a.setEntry(i, i, daux);
daux *= 1.2;
... |
public static ServiceController<?> addService(final ServiceTarget serviceTarget, final String name, final String relativeTo, final String path,
final Integer scanInterval, TimeUnit unit, final Boolean autoDeployZip,
final Boolean autoDeployExploded... | public static ServiceController<?> addService(final ServiceTarget serviceTarget, final String name, final String relativeTo, final String path,
final Integer scanInterval, TimeUnit unit, final Boolean autoDeployZip,
final Boolean autoDeployExploded... |
protected void execute(DeploymentProcessorTarget processorTarget) {
logger.debug("Configuring timers");
ModelNode timerServiceModel = model;
//install the ejb timer service data store path service
if (path != null) {
... | protected void execute(DeploymentProcessorTarget processorTarget) {
logger.debug("Configuring timers");
ModelNode timerServiceModel = model;
//install the ejb timer service data store path service
if (path != null) {
... |
private Configuration transformConfig(String serverName, final ModelNode model) throws OperationFailedException {
Configuration configuration = new ConfigurationImpl();
configuration.setName(serverName);
// --
configuration.setAllowAutoFailBack(ALLOW_FAILBACK.validateResolvedOpera... | private Configuration transformConfig(String serverName, final ModelNode model) throws OperationFailedException {
Configuration configuration = new ConfigurationImpl();
configuration.setName(serverName);
// --
configuration.setAllowAutoFailBack(ALLOW_FAILBACK.validateResolvedOpera... |
public String getBodyAsString(Charset charset) {
byte[] bytes = getBodyAsBytes();
try {
return new String(bytes, charset.name());
}
catch (UnsupportedEncodingException ex) {
// should not occur
throw new InternalError(ex.getMessage());
}
}
| public String getBodyAsString(Charset charset) {
byte[] bytes = getBodyAsBytes();
try {
return new String(bytes, charset.name());
}
catch (UnsupportedEncodingException ex) {
// should not occur
throw new IllegalStateException(ex);
}
}
|
String RECOVERY_LISTENER = "recovery-listener";
/*
* 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;... | String RECOVERY_LISTENER = "recovery-listener";
/*
* 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;... |
@Message(id = 12021, value = "Failed to kill process '%s', trying to destroy the process instead.")
/*
* 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 i... | @Message(id = 12021, value = "Failed to kill process '%s', trying to destroy the process instead.")
/*
* 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 i... |
package org.jboss.as.server.deployment.repository.api;
/*
* 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 so... | package org.jboss.as.server.deployment.repository.api;
/*
* 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 so... |
import org.jboss.as.server.deployment.repository.api.ContentRepository;
/*
* 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.
*
... | import org.jboss.as.server.deployment.repository.api.ContentRepository;
/*
* 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.
*
... |
public void bundleChanged(BundleEvent event) {
Bundle auxBundle = event.getBundle();
if (targetBundle.equals(auxBundle) && BundleEvent.STARTED == event.getType()) {
startedLatch.countDown();
}
... | public void bundleChanged(BundleEvent event) {
Bundle auxBundle = event.getBundle();
if (targetBundle.equals(auxBundle) && BundleEvent.STARTED == event.getType()) {
startedLatch.countDown();
}
... |
private long parse(final Reader in, final boolean traverseColumns) throws IOException {
final CSVFormat format = CSVFormat.DEFAULT.withIgnoreSurroundingSpaces(false);
long recordCount = 0;
for (final CSVRecord record : format.parse(in)) {
recordCount++;
if (traverseCo... | private long parse(final Reader in, final boolean traverseColumns) throws IOException {
final CSVFormat format = CSVFormat.DEFAULT.withIgnoreSurroundingSpaces(false);
long recordCount = 0;
for (final CSVRecord record : format.parse(in)) {
recordCount++;
if (traverseCo... |
private static String checkURL(String server, boolean shouldFail, String path) throws Exception {
String address = CLITestSuite.hostAddresses.get(getServerHost(server));
Integer portOffset = CLITestSuite.portOffsets.get(server);
URL url = new URL("http", address, 8080 + portOffset, path);
... | private static String checkURL(String server, boolean shouldFail, String path) throws Exception {
String address = CLITestSuite.hostAddresses.get(getServerHost(server));
Integer portOffset = CLITestSuite.portOffsets.get(server);
URL url = new URL("http", address, 8080 + portOffset, path);
... |
private ModelNode getAddConnectorOp(Connector conn) {
final ModelNode composite = Util.getEmptyOperation(COMPOSITE, new ModelNode());
final ModelNode steps = composite.get(STEPS);
ModelNode op = createOpNode("subsystem=web/connector=test-" + conn.getName() + "-connector", "add");
op.... | private ModelNode getAddConnectorOp(Connector conn) {
final ModelNode composite = Util.getEmptyOperation(COMPOSITE, new ModelNode());
final ModelNode steps = composite.get(STEPS);
ModelNode op = createOpNode("subsystem=web/connector=test-" + conn.getName() + "-connector", "add");
op.... |
public static void createTestConnector(final ModelControllerClient client) throws Exception {
final List<ModelNode> updates = new ArrayList<ModelNode>();
ModelNode op = new ModelNode();
op.get(OP).set(ADD);
op.get(OP_ADDR).add("socket-binding-group", "standard-sockets");
op.g... | public static void createTestConnector(final ModelControllerClient client) throws Exception {
final List<ModelNode> updates = new ArrayList<ModelNode>();
ModelNode op = new ModelNode();
op.get(OP).set(ADD);
op.get(OP_ADDR).add("socket-binding-group", "standard-sockets");
op.g... |
private ModelNode getAddConnectorOp(Connector conn, String keyPEMFile, String certPEMFile, String keyStoreFile, String password) {
final ModelNode composite = Util.getEmptyOperation(COMPOSITE, new ModelNode());
final ModelNode steps = composite.get(STEPS);
ModelNode op = createOpNode("subsy... | private ModelNode getAddConnectorOp(Connector conn, String keyPEMFile, String certPEMFile, String keyStoreFile, String password) {
final ModelNode composite = Util.getEmptyOperation(COMPOSITE, new ModelNode());
final ModelNode steps = composite.get(STEPS);
ModelNode op = createOpNode("subsy... |
protected byte[] readRecord() throws IOException {
byte[] record = new byte[recordSize];
int readNow = is.read(record);
count(readNow);
if (readNow != recordSize) {
return null;
}
return record;
}
| protected byte[] readRecord() throws IOException {
byte[] record = new byte[recordSize];
int readNow = IOUtils.readFully(is, record);
count(readNow);
if (readNow != recordSize) {
return null;
}
return record;
}
|
protected ConfigurationParser createConfigurationParser() {
return new ConfigurationParser(beanFactory.getBeanClassLoader());
}
| protected ConfigurationParser createConfigurationParser() {
return new ConfigurationParser(this.getProblemReporter(), beanFactory.getBeanClassLoader());
}
|
public static void moveDirectory(final File srcDir, final File destDir) throws IOException {
if (srcDir == null) {
throw new NullPointerException("Source must not be null");
}
if (destDir == null) {
throw new NullPointerException("Destination must not be null");
... | public static void moveDirectory(final File srcDir, final File destDir) throws IOException {
if (srcDir == null) {
throw new NullPointerException("Source must not be null");
}
if (destDir == null) {
throw new NullPointerException("Destination must not be null");
... |
public void testRank() {
Assert.assertEquals(3, generator.getRank());
}
| public void testRank() {
Assert.assertEquals(2, generator.getRank());
}
|
public String toString() {
return "BrokerAvailabilityEvent=" + this.brokerAvailable;
}
| public String toString() {
return "BrokerAvailabilityEvent[available=" + this.brokerAvailable + ", " + getSource() + "]";
}
|
public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception {
if (logger.isTraceEnabled()) {
logger.trace(message + ", " + session);
}
super.handleMessage(session, message);
}
| public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception {
if (logger.isTraceEnabled()) {
logger.trace("Handling " + message + " in " + session);
}
super.handleMessage(session, message);
}
|
public String toString() {
return "SessionConnectEvent: message=" + message;
}
| public String toString() {
return "SessionConnectEvent" + this.message;
}
|
public String toString() {
return "SessionConnectedEvent: message=" + message;
}
| public String toString() {
return "SessionConnectedEvent" + this.message;
}
|
public void emptySubProtocol() throws Exception {
this.session.setAcceptedProtocol("");
this.webSocketHandler.setDefaultProtocolHandler(defaultHandler);
this.webSocketHandler.afterConnectionEstablished(session);
verify(this.defaultHandler).afterSessionStarted(
isA(ConcurrentWebSocketSessionDecorator.class... | public void emptySubProtocol() throws Exception {
this.session.setAcceptedProtocol("");
this.webSocketHandler.setDefaultProtocolHandler(this.defaultHandler);
this.webSocketHandler.afterConnectionEstablished(session);
verify(this.defaultHandler).afterSessionStarted(
isA(ConcurrentWebSocketSessionDecorator.... |
public DependencyDescriptor(DependencyDescriptor original) {
this.methodParameter = original.methodParameter;
this.field = original.field;
this.declaringClass = original.declaringClass;
this.methodName = original.methodName;
this.parameterTypes = original.parameterTypes;
this.parameterIndex = original.para... | public DependencyDescriptor(DependencyDescriptor original) {
this.methodParameter = (original.methodParameter != null ? new MethodParameter(original.methodParameter) : null);
this.field = original.field;
this.declaringClass = original.declaringClass;
this.methodName = original.methodName;
this.parameterTypes... |
private HostControllerEnvironment createHostControllerEnvironment() {
try {
Map<String, String> props = new HashMap<String, String>();
File home = new File("target/jbossas");
delete(home);
home.mkdir();
props.put(HostControllerEnvironment.HOME_DIR,... | private HostControllerEnvironment createHostControllerEnvironment() {
try {
Map<String, String> props = new HashMap<String, String>();
File home = new File("target/jbossas");
delete(home);
home.mkdir();
props.put(HostControllerEnvironment.HOME_DIR,... |
private static HostControllerEnvironment determineEnvironment(String[] args) {
Integer pmPort = null;
InetAddress pmAddress = null;
final PCSocketConfig pcSocketConfig = new PCSocketConfig();
String defaultJVM = null;
boolean isRestart = false;
boolean backupDomainFil... | private static HostControllerEnvironment determineEnvironment(String[] args) {
Integer pmPort = null;
InetAddress pmAddress = null;
final PCSocketConfig pcSocketConfig = new PCSocketConfig();
String defaultJVM = null;
boolean isRestart = false;
boolean backupDomainFil... |
private static boolean handleHelpOrVersion(String arg, String jbossHome) {
if (CommandLineConstants.HELP.equals(arg) || CommandLineConstants.SHORT_HELP.equals(arg)
|| CommandLineConstants.OLD_HELP.equals(arg)) {
usage();
return true;
} else if (CommandLineConstant... | private static boolean handleHelpOrVersion(String arg, String jbossHome) {
if (CommandLineConstants.HELP.equals(arg) || CommandLineConstants.SHORT_HELP.equals(arg)
|| CommandLineConstants.OLD_HELP.equals(arg)) {
usage();
return true;
} else if (CommandLineConstant... |
IllegalStateException cannotCloseTransactionContainerEntityManger();
/*
* 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... | IllegalStateException cannotCloseTransactionContainerEntityManger();
/*
* 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 static void parseResourceRoot(final DeploymentUnit deploymentUnit, final XMLStreamReader reader,
final ModuleStructureSpec specBuilder) throws XMLStreamException {
String name = null;
String path = null;
final Set<Attribute> required = EnumSe... | private static void parseResourceRoot(final DeploymentUnit deploymentUnit, final XMLStreamReader reader,
final ModuleStructureSpec specBuilder) throws XMLStreamException {
String name = null;
String path = null;
final Set<Attribute> required = EnumSe... |
protected RootLoggerService() {
super("");
}
| protected RootLoggerService() {
super(CommonAttributes.ROOT_LOGGER_NAME);
}
|
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if(deploymentUnit.getAttachment(ServiceActivatorMarker.ATTACHMENT_KEY) == null)
return; // Skip it if it has not been... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if(deploymentUnit.getAttachment(Attachments.SERVICES).getServiceImplementations(ServiceActivator.class.getName()).isEmpty())
... |
private ModelNode getNoTextValueTypeDescription(final ModelNode parent) {
final ModelNode valueType = parent.get(VALUE_TYPE);
final ModelNode code = valueType.get(CODE);
code.get(DESCRIPTION); // placeholder
code.get(TYPE).set(ModelType.STRING);
code.get(NILLABLE).set(false);... | private ModelNode getNoTextValueTypeDescription(final ModelNode parent) {
final ModelNode valueType = parent.get(VALUE_TYPE);
final ModelNode code = valueType.get(CODE);
code.get(DESCRIPTION); // placeholder
code.get(TYPE).set(ModelType.STRING);
code.get(NILLABLE).set(false);... |
public ChannelPipeline getPipeline() throws Exception {
// Create a default pipeline implementation.
ChannelPipeline pipeline = Channels.pipeline();
// Decoder
pipeline.addLast("decoder", new MessageDecoder());
// Encoder
pipeline.addLast("encoder", new MessageEncode... | public ChannelPipeline getPipeline() throws Exception {
// Create a default pipeline implementation.
ChannelPipeline pipeline = Channels.pipeline();
// Decoder
pipeline.addLast("decoder", new MessageDecoder());
// Encoder
pipeline.addLast("encoder", new MessageEncode... |
public <T> T getBean(Class<T> requiredType, Object... args) throws BeansException {
Assert.notNull(requiredType, "Required type must not be null");
String[] beanNames = getBeanNamesForType(requiredType);
if (beanNames.length > 1) {
ArrayList<String> autowireCandidates = new ArrayList<String>();
for (String... | public <T> T getBean(Class<T> requiredType, Object... args) throws BeansException {
Assert.notNull(requiredType, "Required type must not be null");
String[] beanNames = getBeanNamesForType(requiredType);
if (beanNames.length > 1) {
ArrayList<String> autowireCandidates = new ArrayList<String>();
for (String... |
package test.beans;
/*
* Copyright 2002-2005 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/LICENSE-2.0
* ... | package test.beans;
/*
* Copyright 2002-2005 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/LICENSE-2.0
* ... |
package test.beans;
/*
* Copyright 2002-2005 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/LICENSE-2.0
*
... | package test.beans;
/*
* Copyright 2002-2005 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/LICENSE-2.0
*
... |
public void testConfiguration() throws Throwable {
assertNotNull("Deployment metadata for ear not found", managementClient.getDeploymentMetaData(deploymentName));
final ModelNode address = new ModelNode();
address.add("deployment", deploymentName).add("subdeployment", subdeploymentName).add... | public void testConfiguration() throws Throwable {
assertNotNull("Deployment metadata for ear not found", managementClient.getProtocolMetaData(deploymentName));
final ModelNode address = new ModelNode();
address.add("deployment", deploymentName).add("subdeployment", subdeploymentName).add("... |
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (deploymentUnit.hasAttachment(Attachments.OSGI_MANIFEST)) {
return;
}
final ModuleSpecific... | public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (deploymentUnit.hasAttachment(Attachments.OSGI_MANIFEST)) {
return;
}
final ModuleSpecific... |
public boolean shouldSkip(AnnotatedTypeMetadata metadata, ConfigurationPhase phase) {
if (metadata == null || !metadata.isAnnotated(Conditional.class.getName())) {
return false;
}
if (phase == null) {
if (metadata instanceof AnnotationMetadata &&
ConfigurationClassUtils.isConfigurationCandidate((Anno... | public boolean shouldSkip(AnnotatedTypeMetadata metadata, ConfigurationPhase phase) {
if (metadata == null || !metadata.isAnnotated(Conditional.class.getName())) {
return false;
}
if (phase == null) {
if (metadata instanceof AnnotationMetadata &&
ConfigurationClassUtils.isConfigurationCandidate((Anno... |
public static final String SUBSYSTEM_NAME = "modcluster";
static final PathElement sslConfigurationPath = PathElement.pathElement(CommonAttributes.SSL, CommonAttributes.CONFIGURATION);
static final PathElement configurationPath = PathElement.pathElement(CommonAttributes.MOD_CLUSTER_CONFIG);
| public static final String SUBSYSTEM_NAME = "modcluster";
static final PathElement sslConfigurationPath = PathElement.pathElement(CommonAttributes.SSL, CommonAttributes.CONFIGURATION);
static final PathElement configurationPath = PathElement.pathElement(CommonAttributes.MOD_CLUSTER_CONFIG,CommonAttributes.... |
private void splitSqlScript(String script, char delim, List<String> statements) {
StringBuilder sb = new StringBuilder();
boolean inLiteral = false;
char[] content = script.toCharArray();
for (int i = 0; i < script.length(); i++) {
char c = content[i];
if (c == '\'') {
inLiteral = !inLiteral;
}
... | private void splitSqlScript(String script, char delim, List<String> statements) {
StringBuilder sb = new StringBuilder();
boolean inLiteral = false;
char[] content = script.toCharArray();
for (int i = 0; i < script.length(); i++) {
char c = content[i];
if (c == '\'') {
inLiteral = !inLiteral;
}
... |
protected void initModel(Resource rootResource, ManagementResourceRegistration rootRegistration) {
HostModelUtil.createRootRegistry(rootRegistration, environment, ignoredRegistry, this);
this.modelNodeRegistration = rootRegistration;
}
| protected void initModel(Resource rootResource, ManagementResourceRegistration rootRegistration) {
HostModelUtil.createRootRegistry(rootRegistration, environment, ignoredRegistry, this, processType);
this.modelNodeRegistration = rootRegistration;
}
|
protected void handleTransportRequest(ServerHttpRequest request, ServerHttpResponse response,
WebSocketHandler handler, String sessionId, String transport) throws SockJsException {
TransportType transportType = TransportType.fromValue(transport);
if (transportType == null) {
if (logger.isDebugEnabled()) {
... | protected void handleTransportRequest(ServerHttpRequest request, ServerHttpResponse response,
WebSocketHandler handler, String sessionId, String transport) throws SockJsException {
TransportType transportType = TransportType.fromValue(transport);
if (transportType == null) {
if (logger.isDebugEnabled()) {
... |
public MBeanServerConnection getConnection() {
String host = hostAddr.getHostAddress();
String urlString = System.getProperty("jmx.service.url", "service:jmx:rmi:///jndi/rmi://" + ProtocolUtils.formatPossibleIpv6Address(host) + ":" + port + "/jmxrmi");
try {
if (jmxConnector == n... | public MBeanServerConnection getConnection() {
String host = hostAddr.getHostAddress();
String urlString = System.getProperty("jmx.service.url", "service:jmx:rmi:///jndi/rmi://" + NetworkUtils.formatPossibleIpv6Address(host) + ":" + port + "/jmxrmi");
try {
if (jmxConnector == nu... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (!WeldDeploymentMarker.isPartOfWeldDeployment(deploymentUnit)) {
return;
}
final EEModuleDescrip... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (!WeldDeploymentMarker.isWeldDeployment(deploymentUnit)) {
return;
}
final EEModuleDescription m... |
private static final ZipShort HEADER_ID = new ZipShort(0x0001);
| private void addSizes(byte[] data) {
System.arraycopy(size.getBytes(), 0, data, 0, DWORD);
System.arraycopy(compressedSize.getBytes(), 0, data, DWORD, DWORD);
}
}
|
protected TransformationTarget create(final TransformerRegistry registry, ModelVersion version, TransformationTarget.TransformationTargetType type) {
return TransformationTargetImpl.create(registry, version, Collections.<PathAddress, ModelVersion>emptyMap(), null, type);
}
| protected TransformationTarget create(final TransformerRegistry registry, ModelVersion version, TransformationTarget.TransformationTargetType type) {
return TransformationTargetImpl.create(registry, version, Collections.<PathAddress, ModelVersion>emptyMap(), null, type, null);
}
|
public TransformedOperation transformOperation(ModelVersion modelVersion, ModelNode operation) throws OperationFailedException {
checkIsMainController();
PathElement pathElement = PathElement.pathElement(SUBSYSTEM, mainSubsystemName);
PathAddress opAddr = PathAddress.pathAddress(operation.ge... | public TransformedOperation transformOperation(ModelVersion modelVersion, ModelNode operation) throws OperationFailedException {
checkIsMainController();
PathElement pathElement = PathElement.pathElement(SUBSYSTEM, mainSubsystemName);
PathAddress opAddr = PathAddress.pathAddress(operation.ge... |
private ModelNode transformReadResourceResult(final OperationContext context, ModelNode original, String subsystem) throws OperationFailedException {
ModelNode rootData = original.get(ModelDescriptionConstants.RESULT);
Map<PathAddress, ModelVersion> subsystemVersions = new HashMap<PathAddress, Mode... | private ModelNode transformReadResourceResult(final OperationContext context, ModelNode original, String subsystem) throws OperationFailedException {
ModelNode rootData = original.get(ModelDescriptionConstants.RESULT);
Map<PathAddress, ModelVersion> subsystemVersions = new HashMap<PathAddress, Mode... |
private ModelControllerClient getControllerClient() throws UnknownHostException {
return ModelControllerClient.Factory.create("http-remoting", System.getProperty("node0", "127.0.0.1"), 9990);
}
| private ModelControllerClient getControllerClient() throws UnknownHostException {
return ModelControllerClient.Factory.create(System.getProperty("node0", "127.0.0.1"), 9999);
}
|
public static ServiceName getFilterRefServiceName(final PathAddress address, String name) {
final PathAddress oneUp = address.subAddress(0, address.size() - 1);
final PathAddress twoUp = oneUp.subAddress(0, oneUp.size() - 1);
final PathAddress threeUp = twoUp.subAddress(0, twoUp.size() - 1);... | public static ServiceName getFilterRefServiceName(final PathAddress address, String name) {
final PathAddress oneUp = address.subAddress(0, address.size() - 1);
final PathAddress twoUp = oneUp.subAddress(0, oneUp.size() - 1);
final PathAddress threeUp = twoUp.subAddress(0, twoUp.size() - 1);... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
fina... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
fina... |
public BeanGroupEntry<I, T> createValue(G id) {
Map<I, T> beans = new HashMap<>();
BeanGroupEntry<I, T> entry = new InfinispanBeanGroupEntry<>(this.factory.createMarshalledValue(beans));
BeanGroupEntry<I, T> existing = this.invoker.invoke(this.cache, new CreateOperation<>(id, entry), Flag.FO... | public BeanGroupEntry<I, T> createValue(G id) {
Map<I, T> beans = new HashMap<>();
BeanGroupEntry<I, T> entry = new InfinispanBeanGroupEntry<>(this.factory.createMarshalledValue(beans));
BeanGroupEntry<I, T> existing = this.invoker.invoke(this.cache, new CreateOperation<>(id, entry));
... |
public Map<K, V> invoke(Cache<Node, Entry<K, V>> cache) {
Map<K, V> removed = new HashMap<>();
for (Node node: nodes) {
Map.Entry<K, V> old = cache.remove(node);
if (old != null) {
removed.put(old.getKey(), old.g... | public Map<K, V> invoke(Cache<Node, Entry<K, V>> cache) {
Map<K, V> removed = new HashMap<>();
for (Node node: nodes) {
Map.Entry<K, V> old = cache.remove(node);
if (old != null) {
removed.put(old.getKey(), old.g... |
private String resolveContextPath() {
if (deploymentName.equals(host.getValue().getDefaultWebModule())) {
return "";
} else {
return contextPath;
}
}
| private String resolveContextPath() {
if (deploymentName.equals(host.getValue().getDefaultWebModule())) {
return "/";
} else {
return contextPath;
}
}
|
T deserialize(byte[] b);
package storm.trident.state;
import java.io.Serializable;
public interface Serializer<T> extends Serializable {
byte[] serialize(T obj);
Object deserialize(byte[] b);
} | T deserialize(byte[] b);
package storm.trident.state;
import java.io.Serializable;
public interface Serializer<T> extends Serializable {
byte[] serialize(T obj);
T deserialize(byte[] b);
} |
public OperationOutputFactory(Factory parent, Fields selfFields) {
_parent = parent;
_fieldIndex = parent.getFieldIndex();
int myIndex = parent.numDelegates();
for(int i=0; i<selfFields.size(); i++) {
String field = selfFields.get(i);
... | public OperationOutputFactory(Factory parent, Fields selfFields) {
_parent = parent;
_fieldIndex = new HashMap(parent.getFieldIndex());
int myIndex = parent.numDelegates();
for(int i=0; i<selfFields.size(); i++) {
String field = selfFields.get(i);
... |
public static Archive<?> deploy() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "testTimerServiceSimple.war");
war.addPackage(DatabaseTimerServiceTestCase.class.getPackage());
war.addAsWebInfResource(DatabaseTimerServiceTestCase.class.getPackage(), "jboss-ejb3.xml", "jboss-ejb... | public static Archive<?> deploy() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "testTimerServiceSimple.war");
war.addPackage(DatabaseTimerServiceTestCase.class.getPackage());
war.addAsManifestResource(DatabaseTimerServiceTestCase.class.getPackage(), "jboss-ejb3.xml", "jboss-e... |
private Process process;
ManagedProcess(final ProcessManagerMaster master, final String processName, final List<String> command, final Map<String, String> env, final String workingDirectory) {
this.master = master;
this.processName = processName;
this.command = command;
this.env... | private Process process;
ManagedProcess(final ProcessManagerMaster master, final String processName, final List<String> command, final Map<String, String> env, final String workingDirectory) {
this.master = master;
this.processName = processName;
this.command = command;
this.env... |
void privateApiUsed(String deployment, ModuleIdentifier dependency);
@LogMessage(level = WARN)
@Message(id = 18568, value = "Deployment \"%s\" is using an unsupported module (\"%s\") which may be changed or removed in future versions without notice.")
void unsupportedApiUsed(String deployment, ModuleId... | void privateApiUsed(String deployment, ModuleIdentifier dependency);
@LogMessage(level = WARN)
@Message(id = 18568, value = "Deployment \"%s\" is using an unsupported module (\"%s\") which may be changed or removed in future versions without notice.")
void unsupportedApiUsed(String deployment, ModuleId... |
private static final MarshallingConfiguration CONFIG;
static {
try {
MARSHALLER_FACTORY = Marshalling.getMarshallerFactory("river", Module.getModuleFromCurrentLoader(ModuleIdentifier.fromString("org.jboss.marshalling.river")).getClassLoader());
} catch (ModuleLoadException e) {
... | private static final MarshallingConfiguration CONFIG;
static {
try {
MARSHALLER_FACTORY = Marshalling.getMarshallerFactory("river", Module.getModuleFromCallerModuleLoader(ModuleIdentifier.fromString("org.jboss.marshalling.river")).getClassLoader());
} catch (ModuleLoadException e) {
... |
protected void installExtension(String module, OperationContext context) throws OperationFailedException {
try {
for (Extension extension : Module.loadServiceFromCurrent(ModuleIdentifier.fromString(module), Extension.class)) {
extension.initialize(extensionContext);
}... | protected void installExtension(String module, OperationContext context) throws OperationFailedException {
try {
for (Extension extension : Module.loadServiceFromCallerModuleLoader(ModuleIdentifier.fromString(module), Extension.class)) {
extension.initialize(extensionContext);
... |
private ObjectFactory factoryFromModularReference(ModularReference modularReference, final Hashtable<?, ?> environment) throws Exception {
final Module module = Module.getCurrentModuleLoader().loadModule(modularReference.getModuleIdentifier());
final ClassLoader classLoader = module.getClassLoader()... | private ObjectFactory factoryFromModularReference(ModularReference modularReference, final Hashtable<?, ?> environment) throws Exception {
final Module module = Module.getCallerModuleLoader().loadModule(modularReference.getModuleIdentifier());
final ClassLoader classLoader = module.getClassLoader();... |
public AnovaStats(int dfbg, int dfwg, double F) {
this.dfbg = dfbg;
this.dfwg = dfwg;
this.F = F;
}
}
} | private AnovaStats(int dfbg, int dfwg, double F) {
this.dfbg = dfbg;
this.dfwg = dfwg;
this.F = F;
}
}
} |
A read(V value) throws InvalidSerializedFormException;
/*
* 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.
*
* This is free so... | A read(V value) throws InvalidSerializedFormException;
/*
* 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.
*
* This is free so... |
public static HttpHandler createErrorContext(final String slot) throws ModuleLoadException {
final ClassPathResourceManager cpresource = new ClassPathResourceManager(getClassLoader(Module.getCallerModuleLoader(), ERROR_MODULE, slot), "");
final io.undertow.server.handlers.resource.ResourceHandler ha... | public static HttpHandler createErrorContext(final String slot) throws ModuleLoadException {
final ClassPathResourceManager cpresource = new ClassPathResourceManager(getClassLoader(Module.getCallerModuleLoader(), ERROR_MODULE, slot), "");
final io.undertow.server.handlers.resource.ResourceHandler ha... |
public void setExclusive(boolean exclusive) {
this.exclusive = true;
}
| public void setExclusive(boolean exclusive) {
this.exclusive = exclusive;
}
|
public final void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final DeploymentDescriptorEnvironment environment = deploymentUnit.getAttachment(Attachments.MODULE_DEPLOYMENT_DESCRIPTOR_... | public final void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final DeploymentDescriptorEnvironment environment = deploymentUnit.getAttachment(Attachments.MODULE_DEPLOYMENT_DESCRIPTOR_... |
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
BundleState bundleState = deploymentUnit.getAttachment(Attachments.BUNDLE_STATE_KEY);
Module module = deploymentUnit.getA... | public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
BundleState bundleState = deploymentUnit.getAttachment(Attachments.BUNDLE_STATE_KEY);
Module module = deploymentUnit.getA... |
protected boolean requiresInterceptors(final Method method, final ComponentConfiguration componentConfiguration) {
return Modifier.isPublic(method.getModifiers()) && componentConfiguration.getComponentDescription().isIntercepted();
}
| protected boolean requiresInterceptors(final Method method, final ComponentConfiguration componentConfiguration) {
return Modifier.isPublic(method.getModifiers()) && !Modifier.isFinal(method.getModifiers()) && componentConfiguration.getComponentDescription().isIntercepted();
}
|
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE, ElementType.ANNOTATION_TYPE})
/*
* Copyright 2002-2008 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.
* Y... | @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE, ElementType.ANNOTATION_TYPE})
/*
* Copyright 2002-2008 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.
* Y... |
protected void applyUpdateBootAction(BootUpdateContext updateContext) {
logger.info("Activating EE subsystem");
updateContext.addDeploymentProcessor(Phase.STRUCTURE, Phase.STRUCTURE_EAR_DEPLOYMENT_INIT, new EarInitializationProcessor());
updateContext.addDeploymentProcessor(Phase.STRUCTURE, ... | protected void applyUpdateBootAction(BootUpdateContext updateContext) {
logger.info("Activating EE subsystem");
updateContext.addDeploymentProcessor(Phase.STRUCTURE, Phase.STRUCTURE_EAR_DEPLOYMENT_INIT, new EarInitializationProcessor());
updateContext.addDeploymentProcessor(Phase.STRUCTURE, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.