-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3,783 changed files
with
19,010 additions
and
17,839 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ target | |
.settings | ||
.classpath | ||
.idea | ||
.cache | ||
*.iml | ||
|
||
test-output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
/* | ||
* Copyright 2010, Red Hat, Inc., and individual contributors | ||
* | ||
* 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 | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.jboss.cdi.tck.spi; | ||
|
||
import java.io.IOException; | ||
|
||
/** | ||
* Provides Bean related operations. | ||
* | ||
* The TCK porting package must provide an implementation of this interface which is suitable for the target implementation. | ||
* | ||
* This interface may be removed. | ||
* | ||
* @author Shane Bryzak | ||
* @author Pete Muir | ||
* @author David Allen | ||
* | ||
*/ | ||
public interface Beans { | ||
|
||
public static final String PROPERTY_NAME = Beans.class.getName(); | ||
|
||
/** | ||
* Determines if the object instance is actually a proxy object. | ||
* | ||
* @param instance The object which might be a proxy | ||
* @return true if the object is a proxy | ||
*/ | ||
public boolean isProxy(Object instance); | ||
|
||
/** | ||
* Passivates the object tree starting with the bean instance provided. | ||
* | ||
* @param instance The bean instance to serialize | ||
* @return the serialized byte array of the bean instance | ||
*/ | ||
public byte[] passivate(Object instance) throws IOException; | ||
|
||
/** | ||
* Activates a bean instance from the given serialized bytes. | ||
* | ||
* @param bytes The serialized byte stream of a bean instance | ||
* @return the serialized byte array of the bean instance | ||
*/ | ||
public Object activate(byte[] bytes) throws IOException, ClassNotFoundException; | ||
|
||
} | ||
/* | ||
* Copyright 2010, Red Hat, Inc., and individual contributors | ||
* | ||
* 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 | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.jboss.cdi.tck.spi; | ||
|
||
import java.io.IOException; | ||
|
||
/** | ||
* Provides Bean related operations. | ||
* | ||
* The TCK porting package must provide an implementation of this interface which is suitable for the target implementation. | ||
* | ||
* This interface may be removed. | ||
* | ||
* @author Shane Bryzak | ||
* @author Pete Muir | ||
* @author David Allen | ||
* | ||
*/ | ||
public interface Beans { | ||
|
||
public static final String PROPERTY_NAME = Beans.class.getName(); | ||
|
||
/** | ||
* Determines if the object instance is actually a proxy object. | ||
* | ||
* @param instance The object which might be a proxy | ||
* @return true if the object is a proxy | ||
*/ | ||
public boolean isProxy(Object instance); | ||
|
||
/** | ||
* Passivates the object tree starting with the bean instance provided. | ||
* | ||
* @param instance The bean instance to serialize | ||
* @return the serialized byte array of the bean instance | ||
*/ | ||
public byte[] passivate(Object instance) throws IOException; | ||
|
||
/** | ||
* Activates a bean instance from the given serialized bytes. | ||
* | ||
* @param bytes The serialized byte stream of a bean instance | ||
* @return the serialized byte array of the bean instance | ||
*/ | ||
public Object activate(byte[] bytes) throws IOException, ClassNotFoundException; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,74 @@ | ||
/* | ||
* Copyright 2010, Red Hat, Inc., and individual contributors | ||
* | ||
* 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 | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.jboss.cdi.tck.spi; | ||
|
||
import jakarta.enterprise.context.spi.Context; | ||
|
||
/** | ||
* This interface provides operations relating to Contexts. | ||
* | ||
* The TCK porting package must provide an implementation of this interface which is suitable for the target implementation. | ||
* | ||
* @author Shane Bryzak | ||
* @author Pete Muir | ||
* | ||
* @param <T> The concrete context type of the implementation | ||
* | ||
*/ | ||
public interface Contexts<T extends Context> { | ||
|
||
public static final String PROPERTY_NAME = Contexts.class.getName(); | ||
|
||
/** | ||
* Sets the specified context as active. | ||
* <p> | ||
* The set of existing contextual instances of the context is preserved | ||
* across invocations of {@link #setActive(Context)} and {@link #setInactive(Context)}. | ||
* | ||
* @param context The context to set active | ||
*/ | ||
public void setActive(T context); | ||
|
||
/** | ||
* Sets the specified context as inactive. | ||
* <p> | ||
* The set of existing contextual instances of the context is preserved | ||
* across invocations of {@link #setActive(Context)} and {@link #setInactive(Context)}. | ||
* | ||
* @param context The context to set inactive | ||
*/ | ||
public void setInactive(T context); | ||
|
||
/** | ||
* Get the request context, regardless of whether it is active or not | ||
* | ||
* @return The request context | ||
*/ | ||
public T getRequestContext(); | ||
|
||
/** | ||
* Returns the dependent context, regardless of whether it is active or not | ||
* | ||
* @return the dependent context | ||
*/ | ||
public T getDependentContext(); | ||
|
||
/** | ||
* Destroy the context. This operation is defined by the CDI specification but has no API. | ||
* | ||
* @param context the context to destroy | ||
*/ | ||
public void destroyContext(T context); | ||
|
||
} | ||
/* | ||
* Copyright 2010, Red Hat, Inc., and individual contributors | ||
* | ||
* 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 | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.jboss.cdi.tck.spi; | ||
|
||
import jakarta.enterprise.context.spi.Context; | ||
|
||
/** | ||
* This interface provides operations relating to Contexts. | ||
* | ||
* The TCK porting package must provide an implementation of this interface which is suitable for the target implementation. | ||
* | ||
* @author Shane Bryzak | ||
* @author Pete Muir | ||
* | ||
* @param <T> The concrete context type of the implementation | ||
* | ||
*/ | ||
public interface Contexts<T extends Context> { | ||
|
||
public static final String PROPERTY_NAME = Contexts.class.getName(); | ||
|
||
/** | ||
* Sets the specified context as active. | ||
* <p> | ||
* The set of existing contextual instances of the context is preserved | ||
* across invocations of {@link #setActive(Context)} and {@link #setInactive(Context)}. | ||
* | ||
* @param context The context to set active | ||
*/ | ||
public void setActive(T context); | ||
|
||
/** | ||
* Sets the specified context as inactive. | ||
* <p> | ||
* The set of existing contextual instances of the context is preserved | ||
* across invocations of {@link #setActive(Context)} and {@link #setInactive(Context)}. | ||
* | ||
* @param context The context to set inactive | ||
*/ | ||
public void setInactive(T context); | ||
|
||
/** | ||
* Get the request context, regardless of whether it is active or not | ||
* | ||
* @return The request context | ||
*/ | ||
public T getRequestContext(); | ||
|
||
/** | ||
* Returns the dependent context, regardless of whether it is active or not | ||
* | ||
* @return the dependent context | ||
*/ | ||
public T getDependentContext(); | ||
|
||
/** | ||
* Destroy the context. This operation is defined by the CDI specification but has no API. | ||
* | ||
* @param context the context to destroy | ||
*/ | ||
public void destroyContext(T context); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.